1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-json
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: fix-encoding-pragma
args: [--remove]
- id: name-tests-test
- id: trailing-whitespace
- id: requirements-txt-fixer
files: requirements-dev.txt
- id: pretty-format-json
args:
- --autofix
- --indent=4
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.8.5
hooks:
- id: reorder-python-imports
exclude: ^(docs/.*|setup.py)$
- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
- repo: http://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
|