exclude: > | |
(?x)^( | |
\.tox/.* | |
)$ | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.5.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: check-docstring-first | |
- id: check-json | |
- id: check-yaml | |
- repo: https://github.com/astral-sh/ruff-pre-commit | |
# Ruff version. | |
rev: v0.4.4 | |
hooks: | |
# Run the linter. | |
- id: ruff | |
args: [ --fix, "--show-fixes"] | |
- id: ruff-format | |
types_or: [python] | |