|
4 | 4 | autofix_commit_msg: "style: pre-commit fixes"
|
5 | 5 |
|
6 | 6 | repos:
|
7 |
| -- repo: https://github.com/pre-commit/pre-commit-hooks |
8 |
| - rev: "v4.5.0" |
9 |
| - hooks: |
10 |
| - - id: check-added-large-files |
11 |
| - - id: check-case-conflict |
12 |
| - - id: check-executables-have-shebangs |
13 |
| - - id: check-merge-conflict |
14 |
| - - id: check-symlinks |
15 |
| - - id: check-yaml |
16 |
| - - id: check-json |
17 |
| - - id: check-toml |
18 |
| - - id: check-docstring-first |
19 |
| - - id: debug-statements |
20 |
| - - id: end-of-file-fixer |
21 |
| - - id: forbid-new-submodules |
22 |
| - - id: mixed-line-ending |
23 |
| - - id: requirements-txt-fixer |
24 |
| - - id: trailing-whitespace |
| 7 | + - repo: https://github.com/adamchainz/blacken-docs |
| 8 | + rev: "1.16.0" |
| 9 | + hooks: |
| 10 | + - id: blacken-docs |
| 11 | + additional_dependencies: [black==23.*] |
25 | 12 |
|
26 |
| -- repo: https://github.com/asottile/setup-cfg-fmt |
27 |
| - rev: "v2.5.0" |
28 |
| - hooks: |
29 |
| - - id: setup-cfg-fmt |
| 13 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 14 | + rev: "v4.5.0" |
| 15 | + hooks: |
| 16 | + - id: check-added-large-files |
| 17 | + - id: check-case-conflict |
| 18 | + - id: check-executables-have-shebangs |
| 19 | + - id: check-merge-conflict |
| 20 | + - id: check-symlinks |
| 21 | + - id: check-yaml |
| 22 | + - id: check-json |
| 23 | + - id: check-toml |
| 24 | + - id: check-docstring-first |
| 25 | + - id: debug-statements |
| 26 | + - id: end-of-file-fixer |
| 27 | + - id: forbid-new-submodules |
| 28 | + - id: mixed-line-ending |
| 29 | + - id: requirements-txt-fixer |
| 30 | + - id: trailing-whitespace |
30 | 31 |
|
31 |
| -- repo: https://github.com/PyCQA/isort |
32 |
| - rev: "5.13.2" |
33 |
| - hooks: |
34 |
| - - id: isort |
| 32 | + - repo: https://github.com/kynan/nbstripout |
| 33 | + rev: "0.6.1" |
| 34 | + hooks: |
| 35 | + - id: nbstripout |
| 36 | + args: |
| 37 | + [ |
| 38 | + "--drop-empty-cells", |
| 39 | + "--extra-keys", |
| 40 | + "metadata.kernelspec metadata.language_info", |
| 41 | + ] |
35 | 42 |
|
36 |
| -- repo: https://github.com/asottile/pyupgrade |
37 |
| - rev: "v3.15.0" |
38 |
| - hooks: |
39 |
| - - id: pyupgrade |
40 |
| - args: ["--py38-plus"] |
| 43 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 44 | + rev: "v0.1.13" |
| 45 | + hooks: |
| 46 | + - id: ruff |
| 47 | + args: ["--fix", "--show-fixes"] |
| 48 | + - id: ruff-format |
41 | 49 |
|
42 |
| -- repo: https://github.com/psf/black |
43 |
| - rev: "23.12.1" |
44 |
| - hooks: |
45 |
| - - id: black-jupyter |
| 50 | + - repo: https://github.com/codespell-project/codespell |
| 51 | + rev: "v2.2.6" |
| 52 | + hooks: |
| 53 | + - id: codespell |
| 54 | + args: ["-L", "nd,unparseable,compiletime"] |
46 | 55 |
|
47 |
| -- repo: https://github.com/pre-commit/mirrors-mypy |
48 |
| - rev: "v1.8.0" |
49 |
| - hooks: |
50 |
| - - id: mypy |
51 |
| - files: src |
52 |
| - stages: [manual] |
| 56 | + - repo: https://github.com/shellcheck-py/shellcheck-py |
| 57 | + rev: "v0.9.0.6" |
| 58 | + hooks: |
| 59 | + - id: shellcheck |
53 | 60 |
|
54 |
| -- repo: https://github.com/hadialqattan/pycln |
55 |
| - rev: "v2.4.0" |
56 |
| - hooks: |
57 |
| - - id: pycln |
58 |
| - args: ["--all"] |
| 61 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 62 | + rev: "v1.10.0" |
| 63 | + hooks: |
| 64 | + - id: python-no-log-warn |
| 65 | + - id: rst-backticks |
| 66 | + - id: rst-directive-colons |
| 67 | + - id: rst-inline-touching-normal |
59 | 68 |
|
60 |
| -- repo: https://github.com/PyCQA/flake8 |
61 |
| - rev: "6.1.0" |
62 |
| - hooks: |
63 |
| - - id: flake8 |
64 |
| - additional_dependencies: [ |
65 |
| - flake8-bugbear>=23.1.17, |
66 |
| - flake8-print, |
67 |
| - # flake8-docstrings, |
68 |
| - pep8-naming |
69 |
| - ] |
70 |
| - # args: ["--docstring-convention", "numpy"] # or google, change me |
| 69 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 70 | + rev: "v4.0.0-alpha.8" |
| 71 | + hooks: |
| 72 | + - id: prettier |
| 73 | + types_or: [yaml, markdown, html, css, scss, javascript, json] |
| 74 | + args: [--prose-wrap=always] |
71 | 75 |
|
72 |
| -- repo: https://github.com/kynan/nbstripout |
73 |
| - rev: "0.6.1" |
74 |
| - hooks: |
75 |
| - - id: nbstripout |
76 |
| - args: ["--drop-empty-cells", |
77 |
| - "--extra-keys", "metadata.kernelspec metadata.language_info"] |
| 76 | + - repo: https://github.com/abravalheri/validate-pyproject |
| 77 | + rev: v0.15 |
| 78 | + hooks: |
| 79 | + - id: validate-pyproject |
78 | 80 |
|
79 |
| -- repo: https://github.com/mgedmin/check-manifest |
80 |
| - rev: "0.49" |
81 |
| - hooks: |
82 |
| - - id: check-manifest |
83 |
| - stages: [manual] |
84 |
| - |
85 |
| -- repo: https://github.com/codespell-project/codespell |
86 |
| - rev: "v2.2.6" |
87 |
| - hooks: |
88 |
| - - id: codespell |
89 |
| - args: ["-L", "nd,unparseable,compiletime"] |
90 |
| - |
91 |
| -- repo: https://github.com/shellcheck-py/shellcheck-py |
92 |
| - rev: "v0.9.0.6" |
93 |
| - hooks: |
94 |
| - - id: shellcheck |
95 |
| - |
96 |
| -- repo: https://github.com/pre-commit/pygrep-hooks |
97 |
| - rev: "v1.10.0" |
98 |
| - hooks: |
99 |
| - - id: python-no-log-warn |
100 |
| - - id: rst-backticks |
101 |
| - - id: rst-directive-colons |
102 |
| - - id: rst-inline-touching-normal |
103 |
| - |
104 |
| -- repo: https://github.com/pre-commit/mirrors-prettier |
105 |
| - rev: "v4.0.0-alpha.8" |
106 |
| - hooks: |
107 |
| - - id: prettier |
108 |
| - types_or: [json] |
| 81 | + - repo: https://github.com/python-jsonschema/check-jsonschema |
| 82 | + rev: 0.27.3 |
| 83 | + hooks: |
| 84 | + - id: check-dependabot |
| 85 | + - id: check-github-workflows |
| 86 | + - id: check-readthedocs |
0 commit comments