| 1 |
--- |
| 2 |
default_stages: [commit, push] |
| 3 |
default_language_version: |
| 4 |
# force all unspecified Python hooks to run python3 |
| 5 |
python: python3 |
| 6 |
minimum_pre_commit_version: '2.18.1' |
| 7 |
repos: |
| 8 |
- repo: meta |
| 9 |
hooks: |
| 10 |
- id: identity |
| 11 |
- id: check-hooks-apply |
| 12 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 13 |
rev: v4.4.0 |
| 14 |
hooks: |
| 15 |
- id: check-added-large-files |
| 16 |
- id: check-case-conflict |
| 17 |
- id: check-executables-have-shebangs |
| 18 |
exclude: ^test/t/lang\.rb$ |
| 19 |
- id: check-merge-conflict |
| 20 |
- id: check-shebang-scripts-are-executable |
| 21 |
- id: check-vcs-permalinks |
| 22 |
- id: check-yaml |
| 23 |
- id: detect-private-key |
| 24 |
- id: end-of-file-fixer |
| 25 |
- id: file-contents-sorter |
| 26 |
args: [--unique] |
| 27 |
files: ^codespell\.txt$ |
| 28 |
- id: fix-byte-order-marker |
| 29 |
- id: forbid-submodules |
| 30 |
- id: mixed-line-ending |
| 31 |
- id: trailing-whitespace |
| 32 |
- repo: https://github.com/Lucas-C/pre-commit-hooks |
| 33 |
rev: v1.5.1 |
| 34 |
hooks: |
| 35 |
- id: forbid-tabs |
| 36 |
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$ |
| 37 |
- id: remove-tabs |
| 38 |
args: [--whitespaces-count, '2'] |
| 39 |
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$ |
| 40 |
- repo: https://github.com/codespell-project/codespell |
| 41 |
rev: v2.2.5 |
| 42 |
hooks: |
| 43 |
- id: codespell |
| 44 |
name: Run codespell |
| 45 |
description: Check spelling with codespell |
| 46 |
entry: codespell --ignore-words=codespell.txt |
| 47 |
- repo: https://github.com/jumanjihouse/pre-commit-hooks |
| 48 |
rev: 3.0.0 |
| 49 |
hooks: |
| 50 |
- id: script-must-not-have-extension |
| 51 |
name: Local policy is to exclude extension from all shell files |
| 52 |
types: [shell] |
| 53 |
- repo: https://github.com/igorshubovych/markdownlint-cli |
| 54 |
rev: v0.35.0 |
| 55 |
hooks: |
| 56 |
- id: markdownlint |
| 57 |
name: Run markdownlint |
| 58 |
description: Checks the style of Markdown files |
| 59 |
entry: markdownlint -c .github/linters/.markdown-lint.yml . |
| 60 |
types: [markdown] |
| 61 |
files: \.(md|mdown|markdown)$ |
| 62 |
- repo: https://github.com/tcort/markdown-link-check |
| 63 |
rev: v3.11.2 |
| 64 |
hooks: |
| 65 |
- id: markdown-link-check |
| 66 |
name: Run markdown-link-check |
| 67 |
description: Checks hyperlinks in Markdown files |
| 68 |
args: [-q] |
| 69 |
types: [markdown] |
| 70 |
files: \.(md|mdown|markdown)$ |
| 71 |
- repo: https://github.com/adrienverge/yamllint |
| 72 |
rev: v1.32.0 |
| 73 |
hooks: |
| 74 |
- id: yamllint |
| 75 |
name: Run yamllint |
| 76 |
description: Check YAML files with yamllint |
| 77 |
entry: yamllint --strict -c .github/linters/.yaml-lint.yml |
| 78 |
types: [yaml] |
| 79 |
files: \.(yaml|yml)$ |