| 1 |
# Install pre-commit hooks via |
| 2 |
# pre-commit install |
| 3 |
|
| 4 |
exclude: > |
| 5 |
(?x)^( |
| 6 |
\.vscode/settings\.json |
| 7 |
)$ |
| 8 |
|
| 9 |
repos: |
| 10 |
|
| 11 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 12 |
rev: v4.4.0 |
| 13 |
hooks: |
| 14 |
- id: check-json |
| 15 |
- id: check-yaml |
| 16 |
- id: end-of-file-fixer |
| 17 |
- id: trailing-whitespace |
| 18 |
|
| 19 |
- repo: https://github.com/asottile/pyupgrade |
| 20 |
rev: v3.3.1 |
| 21 |
hooks: |
| 22 |
- id: pyupgrade |
| 23 |
args: [--py37-plus] |
| 24 |
|
| 25 |
- repo: https://github.com/pycqa/isort |
| 26 |
rev: 5.12.0 |
| 27 |
hooks: |
| 28 |
- id: isort |
| 29 |
|
| 30 |
- repo: https://github.com/psf/black |
| 31 |
rev: 23.3.0 |
| 32 |
hooks: |
| 33 |
- id: black |
| 34 |
|
| 35 |
- repo: https://github.com/PyCQA/flake8 |
| 36 |
rev: 6.0.0 |
| 37 |
hooks: |
| 38 |
- id: flake8 |
| 39 |
|
| 40 |
# - repo: https://github.com/pre-commit/mirrors-mypy |
| 41 |
# rev: v0.910 |
| 42 |
# hooks: |
| 43 |
# - id: mypy |
| 44 |
# additional_dependencies: [] |