-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (34 loc) · 986 Bytes
/
.pre-commit-config.yaml
File metadata and controls
34 lines (34 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
- id: check-added-large-files
args: ["--maxkb=10000"]
- id: check-json
- id: pretty-format-json
args: ["--autofix"]
- id: check-yaml
- id: check-case-conflict
- id: check-xml
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
types_or: [yaml]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
hooks:
- id: ruff
args: [--fix, --config=pyproject.toml]
- id: ruff-format
args: [--verbose]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.11.0"
hooks:
- id: mypy
types: [python]
args: [--config-file=pyproject.toml, ./src/r2x]
pass_filenames: false
language: system