1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
repos:
- repo: local
hooks:
- id: ruff
name: ruff
entry: script/run-in-env.sh ruff check --fix --exit-non-zero-on-fix --config pyproject.toml
language: script
types_or: [python, pyi]
- id: ruff-format
name: ruff-format
entry: script/run-in-env.sh ruff format --config pyproject.toml
language: script
types_or: [python, pyi]
- id: codespell
name: codespell
entry: script/run-in-env.sh codespell --toml pyproject.toml
language: script
types: [text]
- id: mypy
name: mypy
entry: script/run-in-env.sh mypy
language: script
types_or: [python, pyi]
exclude: ^tests/
|