Skip to content

Commit 24aeed1

Browse files
committed
changing way how ruff check hook is run;
placing ruff check --fix before black as recommended in ruff docs https://docs.astral.sh/ruff/integrations/#pre-commit;
1 parent f0522a9 commit 24aeed1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ repos:
1212
- repo: https://github.com/asottile/add-trailing-comma
1313
rev: v2.1.0
1414
hooks:
15-
- id: add-trailing-comma
15+
- id: add-trailing-comma
1616

1717
- repo: local
1818
hooks:
19-
- id: black
20-
name: Format with Black
21-
entry: poetry run black
22-
language: system
23-
types: [python]
24-
2519
- id: ruff
2620
name: Run ruff lints
27-
entry: poetry run ruff
21+
entry: poetry run ruff check
2822
language: system
2923
pass_filenames: false
30-
types: [python]
24+
types: [ python ]
3125
args:
3226
- "--fix"
3327
- "taskiq_psqlpy"
3428
- "tests"
3529

30+
- id: black
31+
name: Format with Black
32+
entry: poetry run black
33+
language: system
34+
types: [ python ]
35+
3636
- id: mypy
3737
name: Validate types with MyPy
3838
entry: poetry run mypy

0 commit comments

Comments
 (0)