|
| 1 | +--- |
| 2 | +repos: |
| 3 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 4 | + rev: v5.0.0 |
| 5 | + hooks: |
| 6 | + - id: check-added-large-files |
| 7 | + - id: check-case-conflict |
| 8 | + - id: check-shebang-scripts-are-executable |
| 9 | + - id: check-yaml |
| 10 | + - id: end-of-file-fixer |
| 11 | + - id: mixed-line-ending |
| 12 | + - id: pretty-format-json |
| 13 | + exclude: '^package-lock\.json$' |
| 14 | + args: |
| 15 | + - --autofix |
| 16 | + - id: trailing-whitespace |
| 17 | + - repo: https://github.com/Lucas-C/pre-commit-hooks |
| 18 | + rev: v1.5.5 |
| 19 | + hooks: |
| 20 | + - id: forbid-tabs |
| 21 | + - repo: https://github.com/codespell-project/codespell |
| 22 | + rev: v2.4.1 |
| 23 | + hooks: |
| 24 | + - id: codespell |
| 25 | + - repo: https://github.com/igorshubovych/markdownlint-cli |
| 26 | + rev: v0.44.0 |
| 27 | + hooks: |
| 28 | + - id: markdownlint |
| 29 | + - id: markdownlint-fix |
| 30 | + - repo: https://github.com/Yelp/detect-secrets |
| 31 | + rev: v1.5.0 |
| 32 | + hooks: |
| 33 | + - id: detect-secrets |
| 34 | + # args: |
| 35 | + # - --exclude-secrets |
| 36 | + # - '(auth|secretName|secretKey)' |
| 37 | + - repo: https://github.com/adrienverge/yamllint |
| 38 | + rev: v1.37.0 |
| 39 | + hooks: |
| 40 | + - id: yamllint |
| 41 | + entry: yamllint --config-file .yamllint.yaml |
| 42 | + - repo: https://github.com/rhysd/actionlint |
| 43 | + rev: v1.7.7 |
| 44 | + hooks: |
| 45 | + - id: actionlint |
| 46 | + - repo: https://github.com/psf/black |
| 47 | + rev: 25.1.0 |
| 48 | + hooks: |
| 49 | + - id: black |
| 50 | + language_version: python3.10 |
| 51 | + - repo: https://github.com/pycqa/isort |
| 52 | + rev: 6.0.1 |
| 53 | + hooks: |
| 54 | + - id: isort |
| 55 | + name: isort (python) |
| 56 | + # When set in `pyproject.toml`, the black profile argument may be removed |
| 57 | + args: |
| 58 | + - --profile black |
| 59 | + - repo: https://github.com/scop/pre-commit-shfmt |
| 60 | + rev: v3.11.0-1 |
| 61 | + hooks: |
| 62 | + - id: shfmt |
| 63 | + args: |
| 64 | + - --write |
| 65 | + - --simplify |
| 66 | + - --case-indent |
| 67 | + - --indent=2 |
| 68 | + - repo: https://github.com/shellcheck-py/shellcheck-py |
| 69 | + rev: v0.10.0.1 |
| 70 | + hooks: |
| 71 | + - id: shellcheck |
| 72 | + - repo: https://github.com/compilerla/conventional-pre-commit |
| 73 | + rev: v4.1.0 |
| 74 | + hooks: |
| 75 | + - id: conventional-pre-commit |
| 76 | + stages: [commit-msg] |
0 commit comments