|
1 | | -# See https://pre-commit.com for more information |
2 | | -# See https://pre-commit.com/hooks.html for more hooks |
| 1 | +ci: |
| 2 | + autoupdate_commit_msg: "chore: update pre-commit hooks" |
| 3 | + autofix_commit_msg: "style: pre-commit fixes" |
| 4 | + |
| 5 | +exclude: ^.cruft.json|.copier-answers.yml$ |
| 6 | + |
3 | 7 | repos: |
| 8 | + - repo: https://github.com/adamchainz/blacken-docs |
| 9 | + rev: "1.19.1" |
| 10 | + hooks: |
| 11 | + - id: blacken-docs |
| 12 | + additional_dependencies: [black==24.*] |
| 13 | + |
4 | 14 | - repo: https://github.com/pre-commit/pre-commit-hooks |
5 | | - rev: v4.0.1 |
| 15 | + rev: "v5.0.0" |
6 | 16 | hooks: |
7 | | - - id: trailing-whitespace |
8 | | - - id: end-of-file-fixer |
9 | | - - id: check-ast |
| 17 | + - id: check-added-large-files |
10 | 18 | - id: check-case-conflict |
11 | 19 | - id: check-merge-conflict |
12 | 20 | - id: check-symlinks |
13 | 21 | - id: check-yaml |
14 | 22 | - id: debug-statements |
| 23 | + - id: end-of-file-fixer |
| 24 | + - id: mixed-line-ending |
| 25 | + - id: name-tests-test |
| 26 | + args: ["--pytest-test-first"] |
| 27 | + - id: requirements-txt-fixer |
| 28 | + - id: trailing-whitespace |
| 29 | + |
| 30 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 31 | + rev: "v1.10.0" |
| 32 | + hooks: |
| 33 | + - id: rst-backticks |
| 34 | + - id: rst-directive-colons |
| 35 | + - id: rst-inline-touching-normal |
| 36 | + |
| 37 | + - repo: https://github.com/rbubley/mirrors-prettier |
| 38 | + rev: "v3.5.3" |
| 39 | + hooks: |
| 40 | + - id: prettier |
| 41 | + types_or: [yaml, markdown, html, css, scss, javascript, json] |
| 42 | + args: [--prose-wrap=always] |
| 43 | + |
| 44 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 45 | + rev: "v0.11.11" |
| 46 | + hooks: |
| 47 | + - id: ruff |
| 48 | + args: ["--fix", "--show-fixes"] |
| 49 | + - id: ruff-format |
| 50 | + |
| 51 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 52 | + rev: "v1.15.0" |
| 53 | + hooks: |
| 54 | + - id: mypy |
| 55 | + files: src|tests |
| 56 | + args: [] |
| 57 | + additional_dependencies: |
| 58 | + - pytest |
| 59 | + |
| 60 | + - repo: https://github.com/codespell-project/codespell |
| 61 | + rev: "v2.4.1" |
| 62 | + hooks: |
| 63 | + - id: codespell |
| 64 | + additional_dependencies: |
| 65 | + - tomli; python_version<'3.11' |
| 66 | + exclude: "pixi.*" |
| 67 | + |
| 68 | + - repo: https://github.com/shellcheck-py/shellcheck-py |
| 69 | + rev: "v0.10.0.1" |
| 70 | + hooks: |
| 71 | + - id: shellcheck |
| 72 | + |
| 73 | + - repo: local |
| 74 | + hooks: |
| 75 | + - id: disallow-caps |
| 76 | + name: Disallow improper capitalization |
| 77 | + language: pygrep |
| 78 | + entry: PyBind|Numpy|Cmake|CCache|Github|PyTest |
| 79 | + exclude: .pre-commit-config.yaml |
15 | 80 |
|
16 | | - - repo: https://github.com/timothycrosley/isort |
17 | | - rev: 5.9.3 |
| 81 | + - repo: https://github.com/abravalheri/validate-pyproject |
| 82 | + rev: "v0.24.1" |
18 | 83 | hooks: |
19 | | - - id: isort |
| 84 | + - id: validate-pyproject |
| 85 | + additional_dependencies: ["validate-pyproject-schema-store[all]"] |
20 | 86 |
|
21 | | - - repo: https://github.com/psf/black |
22 | | - rev: 22.3.0 |
| 87 | + - repo: https://github.com/python-jsonschema/check-jsonschema |
| 88 | + rev: "0.33.0" |
23 | 89 | hooks: |
24 | | - - id: black |
| 90 | + - id: check-dependabot |
| 91 | + - id: check-github-workflows |
| 92 | + - id: check-readthedocs |
0 commit comments