Skip to content

Commit 89a94c4

Browse files
committed
refactor: reorganize to execute local hooks first
1 parent 7fb6163 commit 89a94c4

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.pre-commit-config.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,8 @@ repos:
2424
exclude_types: [python] # Covered by Ruff W291.
2525
exclude: ".*(data.*|licenses.*|_static.*|\\.ya?ml|\\.jpe?g|\\.png|\\.svg|\\.webp)$"
2626

27-
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.12.0
29-
hooks:
30-
- id: ruff-format
31-
types: [python]
32-
pass_filenames: true
33-
34-
- repo: https://github.com/christophmeissner/pytest-pre-commit
35-
rev: 1.0.0
36-
hooks:
37-
- id: pytest
38-
language: system
39-
types: [python]
40-
pass_filenames: false
41-
always_run: false
42-
4327
- repo: local
4428
hooks:
45-
- id: mypy-check
46-
name: mypy type check
47-
entry: mypy
48-
language: system
49-
types: [python]
50-
pass_filenames: false
51-
5229
- id: maturin-develop
5330
name: maturin develop
5431
entry: maturin develop
@@ -69,3 +46,26 @@ repos:
6946
language: system
7047
types: [rust]
7148
pass_filenames: false
49+
50+
- id: mypy-check
51+
name: mypy type check
52+
entry: mypy
53+
language: system
54+
types: [python]
55+
pass_filenames: false
56+
57+
- repo: https://github.com/astral-sh/ruff-pre-commit
58+
rev: v0.12.0
59+
hooks:
60+
- id: ruff-format
61+
types: [python]
62+
pass_filenames: true
63+
64+
- repo: https://github.com/christophmeissner/pytest-pre-commit
65+
rev: 1.0.0
66+
hooks:
67+
- id: pytest
68+
language: system
69+
types: [python]
70+
pass_filenames: false
71+
always_run: false

0 commit comments

Comments
 (0)