blob: 8650a2868cd6b3cf84c38b38e3380455a2e4e8e5 [file] [log] [blame]
exclude: '^(mypyc/external/)|(mypy/typeshed/)' # Exclude all vendored code from lints
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 # must match test-requirements.txt
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.7.0 # must match test-requirements.txt
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.281 # must match test-requirements.txt
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]
ci:
autoupdate_schedule: quarterly