| 1 | --- |
| 2 | repos: |
| 3 | - repo: https://github.com/pre-commit/pre-commit-hooks |
| 4 | rev: v4.6.0 |
| 5 | hooks: |
| 6 | - id: trailing-whitespace |
| 7 | - id: end-of-file-fixer |
| 8 | - id: check-yaml |
| 9 | - id: check-added-large-files |
| 10 | - repo: https://github.com/psf/black |
| 11 | rev: 24.4.2 |
| 12 | hooks: |
| 13 | - id: black |
| 14 | - repo: https://github.com/charliermarsh/ruff-pre-commit |
| 15 | rev: v0.4.4 |
| 16 | hooks: |
| 17 | - id: ruff |
| 18 | args: |
| 19 | - --fix |
| 20 | - --exit-non-zero-on-fix |
| 21 | - repo: https://github.com/pre-commit/mirrors-mypy |
| 22 | rev: v1.10.0 |
| 23 | hooks: |
| 24 | - id: mypy |
| 25 | - repo: https://github.com/codespell-project/codespell |
| 26 | rev: v2.2.6 |
| 27 | hooks: |
| 28 | - id: codespell |
| 29 | - repo: https://github.com/adrienverge/yamllint.git |
| 30 | rev: v1.35.1 |
| 31 | hooks: |
| 32 | - id: yamllint |
| 33 | exclude: '^tests/tool/testdata/.*\.yaml$' |
| 34 | args: |
| 35 | - -c |
| 36 | - ".yaml-lint.yaml" |
| 37 | - repo: https://github.com/asottile/setup-cfg-fmt |
| 38 | rev: v2.5.0 |
| 39 | hooks: |
| 40 | - id: setup-cfg-fmt |