| 1 |
# See https://pre-commit.com for more information |
| 2 |
# See https://pre-commit.com/hooks.html for more hooks |
| 3 |
exclude: benchmarks/ |
| 4 |
repos: |
| 5 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 6 |
rev: v4.4.0 |
| 7 |
hooks: |
| 8 |
- id: check-ast |
| 9 |
- id: check-builtin-literals |
| 10 |
- id: check-case-conflict |
| 11 |
- id: check-merge-conflict |
| 12 |
- id: check-json |
| 13 |
- id: check-toml |
| 14 |
- id: check-yaml |
| 15 |
- id: end-of-file-fixer |
| 16 |
- id: mixed-line-ending |
| 17 |
- id: check-vcs-permalinks |
| 18 |
- id: check-shebang-scripts-are-executable |
| 19 |
- id: trailing-whitespace |
| 20 |
- repo: https://github.com/pre-commit/pygrep-hooks |
| 21 |
rev: v1.10.0 |
| 22 |
hooks: |
| 23 |
- id: python-no-log-warn |
| 24 |
- id: python-use-type-annotations |
| 25 |
- id: rst-directive-colons |
| 26 |
- id: rst-inline-touching-normal |
| 27 |
- repo: https://github.com/hadialqattan/pycln |
| 28 |
rev: v2.2.2 |
| 29 |
hooks: |
| 30 |
- id: pycln |
| 31 |
args: [--all] |
| 32 |
- repo: https://github.com/psf/black-pre-commit-mirror |
| 33 |
rev: 23.11.0 |
| 34 |
hooks: |
| 35 |
- id: black |
| 36 |
exclude: ^benchmarks/ |
| 37 |
- repo: https://github.com/PyCQA/isort |
| 38 |
rev: 5.12.0 |
| 39 |
hooks: |
| 40 |
- id: isort |
| 41 |
name: isort (python) |
| 42 |
language_version: "3.11" |
| 43 |
args: ["--profile", "black"] |