|
| 1 | +exclude: '^v2/.*$' |
1 | 2 | repos:
|
2 |
| -- repo: https://github.com/pre-commit/pre-commit-hooks |
3 |
| - rev: v4.0.1 |
4 |
| - hooks: |
5 |
| - - id: check-ast |
6 |
| - - id: check-added-large-files |
7 |
| - - id: check-merge-conflict |
8 |
| - - id: check-case-conflict |
9 |
| - - id: check-docstring-first |
10 |
| - - id: check-json |
11 |
| - - id: check-yaml |
12 |
| - - id: debug-statements |
13 |
| - - id: end-of-file-fixer |
14 |
| - exclude: 'CHANGELOG.md' |
15 |
| - - id: trailing-whitespace |
16 |
| - - id: mixed-line-ending |
17 |
| -- repo: local |
18 |
| - hooks: |
19 |
| - - id: ruff-format |
20 |
| - name: ruff-format |
21 |
| - entry: poetry run ruff format |
22 |
| - require_serial: true |
23 |
| - language: system |
24 |
| - types: [ python ] |
25 |
| - - id: ruff |
26 |
| - name: ruff |
27 |
| - # Add --fix, in case you want it to autofix when this hook runs |
28 |
| - entry: poetry run ruff check --force-exclude |
29 |
| - require_serial: true |
30 |
| - language: system |
31 |
| - types: [ python ] |
32 |
| - - id: mypy |
33 |
| - name: mypy |
34 |
| - entry: poetry run mypy . |
35 |
| - require_serial: true |
36 |
| - language: system |
37 |
| - types: [python] |
38 |
| - pass_filenames: false |
39 |
| - - id: kacl-verify |
40 |
| - name: kacl-verify |
41 |
| - entry: poetry run kacl-cli verify |
42 |
| - language: system |
43 |
| - files: 'CHANGELOG.md' |
44 |
| - pass_filenames: false |
| 3 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 4 | + rev: v4.0.1 |
| 5 | + hooks: |
| 6 | + - id: check-ast |
| 7 | + - id: check-added-large-files |
| 8 | + - id: check-merge-conflict |
| 9 | + - id: check-case-conflict |
| 10 | + - id: check-docstring-first |
| 11 | + - id: check-json |
| 12 | + - id: check-yaml |
| 13 | + - id: debug-statements |
| 14 | + - id: end-of-file-fixer |
| 15 | + exclude: 'CHANGELOG.md' |
| 16 | + - id: trailing-whitespace |
| 17 | + - id: mixed-line-ending |
| 18 | +- repo: local |
| 19 | + hooks: |
| 20 | + - id: ruff-format |
| 21 | + name: ruff-format |
| 22 | + entry: poetry run ruff format |
| 23 | + require_serial: true |
| 24 | + language: system |
| 25 | + types: [ python ] |
| 26 | + - id: ruff |
| 27 | + name: ruff |
| 28 | + # Add --fix, in case you want it to autofix when this hook runs |
| 29 | + entry: poetry run ruff check --force-exclude |
| 30 | + require_serial: true |
| 31 | + language: system |
| 32 | + types: [ python ] |
| 33 | + - id: mypy |
| 34 | + name: mypy |
| 35 | + entry: poetry run mypy . --exclude v2 |
| 36 | + require_serial: true |
| 37 | + language: system |
| 38 | + types: [python] |
| 39 | + pass_filenames: false |
| 40 | + - id: kacl-verify |
| 41 | + name: kacl-verify |
| 42 | + entry: poetry run kacl-cli verify |
| 43 | + language: system |
| 44 | + files: 'CHANGELOG.md' |
| 45 | + pass_filenames: false |
0 commit comments