| 1 |
# To enable this pre-commit hook run: |
| 2 |
# `pip install pre-commit` or `brew install pre-commit` |
| 3 |
# Then run `pre-commit install` |
| 4 |
exclude: 'tests\/test_cases' |
| 5 |
|
| 6 |
# Learn more about this config here: https://pre-commit.com/ |
| 7 |
repos: |
| 8 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 9 |
rev: v5.0.0 |
| 10 |
hooks: |
| 11 |
- id: check-added-large-files |
| 12 |
- id: check-toml |
| 13 |
types: [toml] |
| 14 |
- id: check-yaml |
| 15 |
types: [yaml] |
| 16 |
- id: end-of-file-fixer |
| 17 |
types: [text] |
| 18 |
stages: [pre-commit, pre-push, manual] |
| 19 |
- id: trailing-whitespace |
| 20 |
types: [text] |
| 21 |
stages: [pre-commit, pre-push, manual] |
| 22 |
- id: detect-private-key |
| 23 |
- id: mixed-line-ending |
| 24 |
|
| 25 |
- repo: https://github.com/codespell-project/codespell |
| 26 |
rev: v2.4.1 |
| 27 |
hooks: |
| 28 |
- id: codespell |
| 29 |
additional_dependencies: |
| 30 |
- tomli |
| 31 |
|
| 32 |
- repo: https://github.com/asottile/pyupgrade |
| 33 |
rev: v3.20.0 |
| 34 |
hooks: |
| 35 |
- id: pyupgrade |
| 36 |
args: [--py39-plus] |
| 37 |
|
| 38 |
- repo: https://github.com/PyCQA/isort |
| 39 |
rev: 6.0.1 |
| 40 |
hooks: |
| 41 |
- id: isort |
| 42 |
|
| 43 |
- repo: https://github.com/psf/black |
| 44 |
rev: 25.1.0 |
| 45 |
hooks: |
| 46 |
- id: black |
| 47 |
|
| 48 |
# - repo: https://github.com/pre-commit/mirrors-mypy |
| 49 |
# rev: v1.16.0 |
| 50 |
# hooks: |
| 51 |
# - id: mypy |
| 52 |
# additional_dependencies: |
| 53 |
# - types-python-dateutil |
| 54 |
# - types-requests |
| 55 |
# exclude: ^(docs/|tests/) |
| 56 |
# - repo: https://github.com/jorisroovers/gitlint |
| 57 |
# rev: v0.19.1 |
| 58 |
# hooks: |
| 59 |
# - id: gitlint |
| 60 |
# |
| 61 |
- repo: https://github.com/asottile/setup-cfg-fmt |
| 62 |
rev: v2.8.0 |
| 63 |
hooks: |
| 64 |
- id: setup-cfg-fmt |
| 65 |
args: [--min-py3-version, '3.9'] |
| 66 |
|
| 67 |
- repo: https://github.com/gitleaks/gitleaks |
| 68 |
rev: v8.27.2 |
| 69 |
hooks: |
| 70 |
- id: gitleaks |