|
| 1 | +repos: |
| 2 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v5.0.0 |
| 4 | + hooks: |
| 5 | + - id: check-ast |
| 6 | + - id: check-builtin-literals |
| 7 | + - id: check-case-conflict |
| 8 | + - id: check-executables-have-shebangs |
| 9 | + - id: check-merge-conflict |
| 10 | + - id: check-toml |
| 11 | + - id: debug-statements |
| 12 | + - id: destroyed-symlinks |
| 13 | + - id: end-of-file-fixer |
| 14 | + - id: fix-byte-order-marker |
| 15 | + - id: mixed-line-ending |
| 16 | + - id: trailing-whitespace |
| 17 | + |
| 18 | +- repo: https://github.com/pre-commit/pygrep-hooks |
| 19 | + rev: v1.10.0 |
| 20 | + hooks: |
| 21 | + - id: python-check-blanket-noqa |
| 22 | + - id: python-check-blanket-type-ignore |
| 23 | + - id: python-check-mock-methods |
| 24 | + - id: python-no-eval |
| 25 | + - id: python-no-log-warn |
| 26 | + - id: python-use-type-annotations |
| 27 | + - id: rst-backticks |
| 28 | + - id: rst-directive-colons |
| 29 | + - id: rst-inline-touching-normal |
| 30 | + - id: text-unicode-replacement-char |
| 31 | + |
| 32 | +- repo: https://github.com/codespell-project/codespell |
| 33 | + rev: v2.4.1 |
| 34 | + hooks: |
| 35 | + - id: codespell |
| 36 | + additional_dependencies: |
| 37 | + - tomli |
| 38 | + |
| 39 | +- repo: https://github.com/psf/black |
| 40 | + rev: 25.1.0 |
| 41 | + hooks: |
| 42 | + - id: black |
| 43 | + exclude: "_vendored/conv_template.py" |
| 44 | + |
| 45 | +- repo: https://github.com/pocc/pre-commit-hooks |
| 46 | + rev: v1.3.5 |
| 47 | + hooks: |
| 48 | + - id: clang-format |
| 49 | + args: ["-i"] |
| 50 | + |
| 51 | +- repo: https://github.com/MarcoGorelli/cython-lint |
| 52 | + rev: v0.16.6 |
| 53 | + hooks: |
| 54 | + - id: cython-lint |
| 55 | + - id: double-quote-cython-strings |
| 56 | + |
| 57 | +- repo: https://github.com/pycqa/flake8 |
| 58 | + rev: 7.1.2 |
| 59 | + hooks: |
| 60 | + - id: flake8 |
| 61 | + args: ["--config=.flake8"] |
| 62 | + additional_dependencies: |
| 63 | + - flake8-docstrings==1.7.0 |
| 64 | + - flake8-bugbear==24.4.26 |
| 65 | + |
| 66 | +- repo: https://github.com/pycqa/isort |
| 67 | + rev: 6.0.1 |
| 68 | + hooks: |
| 69 | + - id: isort |
| 70 | + name: isort (python) |
| 71 | + - id: isort |
| 72 | + name: isort (cython) |
| 73 | + types: [cython] |
| 74 | + - id: isort |
| 75 | + name: isort (pyi) |
| 76 | + types: [pyi] |
| 77 | + |
| 78 | +- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks |
| 79 | + rev: v2.14.0 |
| 80 | + hooks: |
| 81 | + - id: pretty-format-toml |
| 82 | + args: [--autofix] |
| 83 | + |
| 84 | +- repo: local |
| 85 | + hooks: |
| 86 | + - id: pylint |
| 87 | + name: pylint |
| 88 | + entry: pylint |
| 89 | + language: system |
| 90 | + types: [python] |
| 91 | + require_serial: true |
| 92 | + args: |
| 93 | + [ |
| 94 | + "-rn", # Only display messages |
| 95 | + "-sn", # Don't display the score |
| 96 | + "--errors-only", |
| 97 | + "--disable=import-error", |
| 98 | + ] |
| 99 | + |
| 100 | +- repo: https://github.com/jumanjihouse/pre-commit-hooks |
| 101 | + rev: 3.0.0 |
| 102 | + hooks: |
| 103 | + - id: shellcheck |
0 commit comments