|
| 1 | +--- |
| 2 | +# https://pre-commit.com/ |
| 3 | +default_stages: [commit, push] |
| 4 | +default_language_version: |
| 5 | + # force all unspecified Python hooks to run python3 |
| 6 | + python: python3 |
| 7 | +minimum_pre_commit_version: "1.20.0" |
| 8 | +repos: |
| 9 | + - repo: meta |
| 10 | + hooks: |
| 11 | + - id: identity |
| 12 | + - id: check-hooks-apply |
| 13 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 14 | + rev: v3.4.0 |
| 15 | + hooks: |
| 16 | + - id: check-added-large-files |
| 17 | + - id: check-case-conflict |
| 18 | + - id: check-executables-have-shebangs |
| 19 | + exclude: ^scripts/windows\.sh$ |
| 20 | + - id: check-merge-conflict |
| 21 | + - id: check-vcs-permalinks |
| 22 | + # - id: check-yaml |
| 23 | + - id: end-of-file-fixer |
| 24 | + - id: fix-byte-order-marker |
| 25 | + - id: mixed-line-ending |
| 26 | + - id: trailing-whitespace |
| 27 | + # - repo: https://github.com/Lucas-C/pre-commit-hooks |
| 28 | + # rev: v1.1.10 |
| 29 | + # hooks: |
| 30 | + # - id: forbid-tabs |
| 31 | + # - id: remove-tabs |
| 32 | + - repo: https://github.com/jumanjihouse/pre-commit-hooks |
| 33 | + rev: 2.1.5 |
| 34 | + hooks: |
| 35 | + - id: shellcheck |
| 36 | + # - id: shfmt |
| 37 | + - repo: https://github.com/codespell-project/codespell |
| 38 | + rev: v2.0.0 |
| 39 | + hooks: |
| 40 | + - id: codespell |
| 41 | + name: Run codespell |
| 42 | + description: Check Spelling with codespell |
| 43 | + entry: codespell --ignore-words=codespell.txt |
| 44 | + # - repo: https://github.com/igorshubovych/markdownlint-cli |
| 45 | + # rev: v0.27.1 |
| 46 | + # hooks: |
| 47 | + # - id: markdownlint |
| 48 | + # name: Run markdownlint |
| 49 | + # description: Checks the style of Markdown files |
| 50 | + # entry: markdownlint -c .github/linters/.markdown-lint.yml . |
| 51 | + # types: [markdown] |
| 52 | + # files: \.(md|mdown|markdown)$ |
| 53 | + # - repo: https://github.com/adrienverge/yamllint |
| 54 | + # rev: v1.26.1 |
| 55 | + # hooks: |
| 56 | + # - id: yamllint |
| 57 | + # name: Run yamllint |
| 58 | + # description: Check YAML files with yamllint |
| 59 | + # entry: yamllint --strict -c .github/linters/.yaml-lint.yml |
| 60 | + # types: [yaml] |
| 61 | + # files: \.(yaml|yml)$ |
0 commit comments