|
| 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 | + |
| 7 | +repos: |
| 8 | + - repo: https://github.com/adamchainz/blacken-docs |
| 9 | + rev: "1.18.0" |
| 10 | + hooks: |
| 11 | + - id: blacken-docs |
| 12 | + additional_dependencies: [black==24.*] |
| 13 | + |
| 14 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 15 | + rev: "v4.6.0" |
| 16 | + hooks: |
| 17 | + - id: check-added-large-files |
| 18 | + - id: check-case-conflict |
| 19 | + - id: check-merge-conflict |
| 20 | + - id: check-symlinks |
| 21 | + - id: check-yaml |
| 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.3.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.6.1" |
| 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.11.1" |
| 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.3.0" |
| 62 | + hooks: |
| 63 | + - id: codespell |
| 64 | + exclude: pixi.lock |
| 65 | + |
| 66 | + - repo: https://github.com/shellcheck-py/shellcheck-py |
| 67 | + rev: "v0.10.0.1" |
| 68 | + hooks: |
| 69 | + - id: shellcheck |
| 70 | + |
| 71 | + - repo: local |
| 72 | + hooks: |
| 73 | + - id: disallow-caps |
| 74 | + name: Disallow improper capitalization |
| 75 | + language: pygrep |
| 76 | + entry: PyBind|Numpy|Cmake|CCache|Github|PyTest |
| 77 | + exclude: .pre-commit-config.yaml |
| 78 | + |
| 79 | + - repo: https://github.com/abravalheri/validate-pyproject |
| 80 | + rev: "v0.19" |
| 81 | + hooks: |
| 82 | + - id: validate-pyproject |
| 83 | + additional_dependencies: ["validate-pyproject-schema-store[all]"] |
| 84 | + |
| 85 | + - repo: https://github.com/python-jsonschema/check-jsonschema |
| 86 | + rev: "0.29.1" |
| 87 | + hooks: |
| 88 | + - id: check-dependabot |
| 89 | + - id: check-github-workflows |
| 90 | + - id: check-readthedocs |
0 commit comments