Skip to content

Commit f229a4a

Browse files
committed
Add pre-commit hook priority
1 parent 761b840 commit f229a4a

1 file changed

Lines changed: 29 additions & 12 deletions

File tree

.pre-commit-config.yaml

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,67 @@
11
repos:
2+
3+
- repo: meta
4+
hooks:
5+
- id: check-hooks-apply
6+
priority: 0
7+
- id: check-useless-excludes
8+
priority: 0
9+
210
- repo: https://github.com/pre-commit/pre-commit-hooks
311
rev: v6.0.0
412
hooks:
513
- id: check-case-conflict
14+
priority: 0
615
- id: check-merge-conflict
16+
priority: 0
717
- id: check-vcs-permalinks
8-
- id: end-of-file-fixer
9-
- id: fix-byte-order-marker
18+
priority: 0
1019
- id: name-tests-test
1120
files: ^tests\/test_(unit|integration)\/.*\.py$
1221
args: [--django]
13-
- id: trailing-whitespace
22+
priority: 0
1423
- id: detect-private-key
24+
priority: 0
25+
- id: end-of-file-fixer
26+
priority: 1
27+
- id: fix-byte-order-marker
28+
priority: 2
29+
- id: trailing-whitespace
30+
priority: 3
1531

1632
- repo: https://github.com/codespell-project/codespell
1733
rev: v2.4.1
1834
hooks:
1935
- id: codespell
2036
exclude: uv.lock
2137
args: [-w]
38+
priority: 4
2239

2340
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
2441
rev: v2.16.0
2542
hooks:
2643
- id: pretty-format-yaml
2744
args: [--autofix, --indent, '2', --preserve-quotes, --offset, '2']
28-
29-
- repo: https://github.com/pre-commit/mirrors-mypy
30-
rev: v1.19.1
31-
hooks:
32-
- id: mypy
33-
additional_dependencies: [types-toml]
45+
priority: 5
3446

3547
- repo: https://github.com/astral-sh/uv-pre-commit
3648
rev: 0.9.25
3749
hooks:
3850
- id: uv-lock
51+
priority: 5
3952

4053
- repo: https://github.com/astral-sh/ruff-pre-commit
4154
rev: v0.14.11
4255
hooks:
4356
- id: ruff-format
57+
priority: 5
4458
- id: ruff-check
4559
args: [--fix]
60+
priority: 6
4661

47-
- repo: meta
62+
- repo: https://github.com/pre-commit/mirrors-mypy
63+
rev: v1.19.1
4864
hooks:
49-
- id: check-hooks-apply
50-
- id: check-useless-excludes
65+
- id: mypy
66+
additional_dependencies: [types-toml]
67+
priority: 7

0 commit comments

Comments
 (0)