|
| 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/psf/black |
| 19 | + rev: 25.1.0 |
| 20 | + hooks: |
| 21 | + - id: black |
| 22 | + exclude: "_vendored/conv_template.py" |
| 23 | + |
| 24 | +- repo: https://github.com/pocc/pre-commit-hooks |
| 25 | + rev: v1.3.5 |
| 26 | + hooks: |
| 27 | + - id: clang-format |
| 28 | + args: ["-i"] |
| 29 | + |
| 30 | +- repo: https://github.com/pycqa/flake8 |
| 31 | + rev: 7.1.2 |
| 32 | + hooks: |
| 33 | + - id: flake8 |
| 34 | + args: ["--config=.flake8"] |
| 35 | + additional_dependencies: |
| 36 | + - flake8-docstrings==1.7.0 |
| 37 | + - flake8-bugbear==24.4.26 |
| 38 | + |
| 39 | +- repo: https://github.com/pycqa/isort |
| 40 | + rev: 6.0.1 |
| 41 | + hooks: |
| 42 | + - id: isort |
| 43 | + name: isort (python) |
| 44 | + - id: isort |
| 45 | + name: isort (cython) |
| 46 | + types: [cython] |
| 47 | + - id: isort |
| 48 | + name: isort (pyi) |
| 49 | + types: [pyi] |
| 50 | + |
| 51 | +- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks |
| 52 | + rev: v2.14.0 |
| 53 | + hooks: |
| 54 | + - id: pretty-format-toml |
| 55 | + args: [--autofix] |
| 56 | + |
| 57 | +- repo: local |
| 58 | + hooks: |
| 59 | + - id: pylint |
| 60 | + name: pylint |
| 61 | + entry: pylint |
| 62 | + language: system |
| 63 | + types: [python] |
| 64 | + require_serial: true |
| 65 | + args: |
| 66 | + [ |
| 67 | + "-rn", # Only display messages |
| 68 | + "-sn", # Don't display the score |
| 69 | + "--errors-only", |
| 70 | + "--disable=import-error", |
| 71 | + ] |
| 72 | + |
| 73 | +- repo: https://github.com/jumanjihouse/pre-commit-hooks |
| 74 | + rev: 3.0.0 |
| 75 | + hooks: |
| 76 | + - id: shellcheck |
0 commit comments