|
| 1 | +# https://pre-commit.com |
| 2 | +default_install_hook_types: [commit-msg, pre-commit] |
| 3 | +default_stages: [commit, manual] |
| 4 | +fail_fast: true |
| 5 | +repos: |
| 6 | + - repo: meta |
| 7 | + hooks: |
| 8 | + - id: check-useless-excludes |
| 9 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 10 | + rev: v1.9.0 |
| 11 | + hooks: |
| 12 | + - id: python-check-mock-methods |
| 13 | + - id: python-use-type-annotations |
| 14 | + - id: rst-backticks |
| 15 | + - id: rst-directive-colons |
| 16 | + - id: rst-inline-touching-normal |
| 17 | + - id: text-unicode-replacement-char |
| 18 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 19 | + rev: v4.3.0 |
| 20 | + hooks: |
| 21 | + - id: check-added-large-files |
| 22 | + - id: check-ast |
| 23 | + - id: check-builtin-literals |
| 24 | + - id: check-case-conflict |
| 25 | + - id: check-docstring-first |
| 26 | + - id: check-json |
| 27 | + - id: check-merge-conflict |
| 28 | + - id: check-shebang-scripts-are-executable |
| 29 | + - id: check-symlinks |
| 30 | + - id: check-toml |
| 31 | + - id: check-vcs-permalinks |
| 32 | + - id: check-xml |
| 33 | + - id: check-yaml |
| 34 | + - id: debug-statements |
| 35 | + - id: destroyed-symlinks |
| 36 | + - id: detect-private-key |
| 37 | + - id: end-of-file-fixer |
| 38 | + types: [python] |
| 39 | + - id: fix-byte-order-marker |
| 40 | + - id: mixed-line-ending |
| 41 | + - id: name-tests-test |
| 42 | + args: [--pytest-test-first] |
| 43 | + - id: no-commit-to-branch |
| 44 | + - id: trailing-whitespace |
| 45 | + types: [python] |
| 46 | + - repo: local |
| 47 | + hooks: |
| 48 | + - id: commitizen |
| 49 | + name: commitizen |
| 50 | + entry: cz check |
| 51 | + args: [--commit-msg-file] |
| 52 | + require_serial: true |
| 53 | + language: system |
| 54 | + stages: [commit-msg] |
| 55 | + - id: absolufy-imports |
| 56 | + name: absolufy-imports |
| 57 | + entry: absolufy-imports |
| 58 | + require_serial: true |
| 59 | + language: system |
| 60 | + types: [python] |
| 61 | + - id: ruff |
| 62 | + name: ruff |
| 63 | + entry: ruff |
| 64 | + args: ["--fixable=ERA001,F401,F841,T201,T203"] |
| 65 | + require_serial: true |
| 66 | + language: system |
| 67 | + types: [python] |
| 68 | + - id: black |
| 69 | + name: black |
| 70 | + entry: black |
| 71 | + require_serial: true |
| 72 | + language: system |
| 73 | + types: [python] |
| 74 | + - id: shellcheck |
| 75 | + name: shellcheck |
| 76 | + entry: shellcheck |
| 77 | + args: [--check-sourced] |
| 78 | + language: system |
| 79 | + types: [shell] |
| 80 | + - id: poetry-check |
| 81 | + name: poetry check |
| 82 | + entry: poetry check |
| 83 | + language: system |
| 84 | + files: pyproject.toml |
| 85 | + pass_filenames: false |
| 86 | + - id: poetry-lock-check |
| 87 | + name: poetry lock check |
| 88 | + entry: poetry lock |
| 89 | + args: [--check] |
| 90 | + language: system |
| 91 | + pass_filenames: false |
| 92 | + - id: mypy |
| 93 | + name: mypy |
| 94 | + entry: mypy |
| 95 | + language: system |
| 96 | + types: [python] |
0 commit comments