|
1 | 1 | ci: |
2 | | - autoupdate_commit_msg: "chore: update pre-commit hooks" |
3 | | - autoupdate_schedule: "monthly" |
4 | | - autofix_commit_msg: "style: pre-commit fixes" |
| 2 | + autoupdate_commit_msg: 'chore: update pre-commit hooks' |
| 3 | + autoupdate_schedule: monthly |
| 4 | + autofix_commit_msg: 'style: pre-commit fixes' |
5 | 5 | autofix_prs: false |
6 | 6 | default_stages: [pre-commit, pre-push] |
7 | 7 | repos: |
8 | | - - repo: https://github.com/astral-sh/ruff-pre-commit |
9 | | - rev: v0.11.9 |
10 | | - hooks: |
11 | | - - id: ruff |
12 | | - args: ["--fix", "--show-fixes"] |
13 | | - - id: ruff-format |
14 | | - - repo: https://github.com/codespell-project/codespell |
15 | | - rev: v2.4.1 |
16 | | - hooks: |
17 | | - - id: codespell |
18 | | - args: ["-L", "fo,ihs,kake,te", "-S", "fixture"] |
19 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
20 | | - rev: v5.0.0 |
21 | | - hooks: |
22 | | - - id: check-yaml |
23 | | - - id: trailing-whitespace |
24 | | - - repo: https://github.com/pre-commit/mirrors-mypy |
25 | | - rev: v1.15.0 |
26 | | - hooks: |
27 | | - - id: mypy |
28 | | - files: src|tests |
29 | | - additional_dependencies: |
| 8 | +- repo: https://github.com/astral-sh/ruff-pre-commit |
| 9 | + rev: v0.11.9 |
| 10 | + hooks: |
| 11 | + - id: ruff |
| 12 | + args: [--fix, --show-fixes] |
| 13 | + - id: ruff-format |
| 14 | +- repo: https://github.com/sourcery-ai/sourcery |
| 15 | + rev: v1.37.0 |
| 16 | + hooks: |
| 17 | + - id: sourcery |
| 18 | + # The best way to use Sourcery in a pre-commit hook: |
| 19 | + # * review only changed lines: |
| 20 | + # * omit the summary |
| 21 | + args: [--diff=git diff HEAD, --no-summary] |
| 22 | +- repo: https://github.com/codespell-project/codespell |
| 23 | + rev: v2.4.1 |
| 24 | + hooks: |
| 25 | + - id: codespell |
| 26 | + args: [-L, 'fo,ihs,kake,te', -S, fixture] |
| 27 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 28 | + rev: v5.0.0 |
| 29 | + hooks: |
| 30 | + - id: check-yaml |
| 31 | + - id: trailing-whitespace |
| 32 | +- repo: https://github.com/pre-commit/mirrors-mypy |
| 33 | + rev: v1.15.0 |
| 34 | + hooks: |
| 35 | + - id: mypy |
| 36 | + files: src|tests |
| 37 | + additional_dependencies: |
30 | 38 | # Package dependencies |
31 | | - - packaging |
32 | | - - donfig |
33 | | - - numcodecs[crc32c] |
34 | | - - numpy==2.1 # until https://github.com/numpy/numpy/issues/28034 is resolved |
35 | | - - typing_extensions |
36 | | - - universal-pathlib |
37 | | - - obstore>=0.5.1 |
| 39 | + - packaging |
| 40 | + - donfig |
| 41 | + - numcodecs[crc32c] |
| 42 | + - numpy==2.1 # until https://github.com/numpy/numpy/issues/28034 is resolved |
| 43 | + - typing_extensions |
| 44 | + - universal-pathlib |
| 45 | + - obstore>=0.5.1 |
38 | 46 | # Tests |
39 | | - - pytest |
40 | | - - hypothesis |
41 | | - - s3fs |
42 | | - - repo: https://github.com/scientific-python/cookie |
43 | | - rev: 2025.05.02 |
44 | | - hooks: |
45 | | - - id: sp-repo-review |
46 | | - - repo: https://github.com/pre-commit/pygrep-hooks |
47 | | - rev: v1.10.0 |
48 | | - hooks: |
49 | | - - id: rst-directive-colons |
50 | | - - id: rst-inline-touching-normal |
51 | | - - repo: https://github.com/numpy/numpydoc |
52 | | - rev: v1.8.0 |
53 | | - hooks: |
54 | | - - id: numpydoc-validation |
55 | | - - repo: https://github.com/twisted/towncrier |
56 | | - rev: 24.8.0 |
57 | | - hooks: |
58 | | - - id: towncrier-check |
| 47 | + - pytest |
| 48 | + - hypothesis |
| 49 | + - s3fs |
| 50 | +- repo: https://github.com/scientific-python/cookie |
| 51 | + rev: 2025.05.02 |
| 52 | + hooks: |
| 53 | + - id: sp-repo-review |
| 54 | +- repo: https://github.com/pre-commit/pygrep-hooks |
| 55 | + rev: v1.10.0 |
| 56 | + hooks: |
| 57 | + - id: rst-directive-colons |
| 58 | + - id: rst-inline-touching-normal |
| 59 | +- repo: https://github.com/numpy/numpydoc |
| 60 | + rev: v1.8.0 |
| 61 | + hooks: |
| 62 | + - id: numpydoc-validation |
| 63 | +- repo: https://github.com/twisted/towncrier |
| 64 | + rev: 24.8.0 |
| 65 | + hooks: |
| 66 | + - id: towncrier-check |
0 commit comments