|
1 | 1 | # See https://pre-commit.com for more information |
2 | 2 | # See https://pre-commit.com/hooks.html for more hooks |
3 | 3 | repos: |
4 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
5 | | - rev: v2.4.0 |
6 | | - hooks: |
7 | | - - id: check-ast |
8 | | - - id: trailing-whitespace |
9 | | - - id: check-toml |
10 | | - - id: end-of-file-fixer |
| 4 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | + rev: v2.4.0 |
| 6 | + hooks: |
| 7 | + - id: check-ast |
| 8 | + - id: trailing-whitespace |
| 9 | + - id: check-toml |
| 10 | + - id: end-of-file-fixer |
11 | 11 |
|
12 | | - - repo: https://github.com/asottile/add-trailing-comma |
13 | | - rev: v2.1.0 |
14 | | - hooks: |
15 | | - - id: add-trailing-comma |
| 12 | +- repo: https://github.com/asottile/add-trailing-comma |
| 13 | + rev: v2.1.0 |
| 14 | + hooks: |
| 15 | + - id: add-trailing-comma |
16 | 16 |
|
17 | | - - repo: local |
18 | | - hooks: |
19 | | - - id: black |
20 | | - name: Format with Black |
21 | | - entry: poetry run black |
22 | | - language: system |
23 | | - types: [python] |
| 17 | +- repo: local |
| 18 | + hooks: |
| 19 | + - id: black |
| 20 | + name: Format with Black |
| 21 | + entry: poetry run black |
| 22 | + language: system |
| 23 | + types: [ python ] |
24 | 24 |
|
25 | | - - id: autoflake |
26 | | - name: autoflake |
27 | | - entry: poetry run autoflake |
28 | | - language: system |
29 | | - types: [python] |
30 | | - args: [--in-place, --remove-all-unused-imports, --remove-duplicate-keys] |
| 25 | +- repo: https://github.com/astral-sh/ruff-pre-commit |
| 26 | + rev: v0.6.0 |
| 27 | + hooks: |
| 28 | + - id: ruff |
| 29 | + name: ruff-check |
| 30 | + pass_filenames: false |
| 31 | + args: |
| 32 | + - --fix |
| 33 | + - taskiq_nats |
| 34 | + - tests |
31 | 35 |
|
32 | | - - id: isort |
33 | | - name: isort |
34 | | - entry: poetry run isort |
35 | | - language: system |
36 | | - types: [python] |
37 | | - |
38 | | - - id: flake8 |
39 | | - name: Check with Flake8 |
40 | | - entry: poetry run flake8 |
41 | | - language: system |
42 | | - pass_filenames: false |
43 | | - types: [python] |
44 | | - args: [--count, taskiq_nats, tests] |
45 | | - |
46 | | - - id: mypy |
47 | | - name: Validate types with MyPy |
48 | | - entry: poetry run mypy |
49 | | - language: system |
50 | | - pass_filenames: false |
51 | | - types: [python] |
52 | | - args: [taskiq_nats, tests] |
53 | | - |
54 | | - - id: yesqa |
55 | | - name: Remove usless noqa |
56 | | - entry: poetry run yesqa |
57 | | - language: system |
58 | | - types: [python] |
| 36 | +- repo: https://github.com/pre-commit/mirrors-mypy |
| 37 | + rev: v1.11.1 |
| 38 | + hooks: |
| 39 | + - id: mypy |
| 40 | + pass_filenames: false |
0 commit comments