|
| 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 | + args: [--maxkb=10240] |
| 8 | + - id: check-case-conflict |
| 9 | + - id: check-merge-conflict |
| 10 | + - id: check-executables-have-shebangs |
| 11 | + - id: check-json |
| 12 | + - id: check-shebang-scripts-are-executable |
| 13 | + - id: check-symlinks |
| 14 | + - id: check-yaml |
| 15 | + - id: detect-private-key |
| 16 | + - id: end-of-file-fixer |
| 17 | + - id: trailing-whitespace |
| 18 | + |
| 19 | + - repo: https://github.com/rhysd/actionlint |
| 20 | + rev: v1.7.7 |
| 21 | + hooks: |
| 22 | + - id: actionlint |
| 23 | + |
| 24 | + - repo: https://github.com/adrienverge/yamllint.git |
| 25 | + rev: v1.35.1 |
| 26 | + hooks: |
| 27 | + - id: yamllint |
| 28 | + entry: yamllint --strict -c .hooks/linters/yamllint.yaml |
| 29 | + |
| 30 | + - repo: https://github.com/codespell-project/codespell |
| 31 | + rev: v2.4.1 |
| 32 | + hooks: |
| 33 | + - id: codespell |
| 34 | + entry: codespell -q 3 -f --skip=".git,.github,README.md" --ignore-words-list="astroid" |
| 35 | + |
| 36 | + - repo: https://github.com/jumanjihouse/pre-commit-hooks |
| 37 | + rev: 3.0.0 |
| 38 | + hooks: |
| 39 | + - id: script-must-have-extension |
| 40 | + name: Ensure shell scripts end with .sh |
| 41 | + types: [shell] |
| 42 | + - id: shellcheck |
| 43 | + - id: shfmt |
| 44 | + # Configuration in .mdlrc and .hooks/linters/mdstyle.rb |
| 45 | + - id: markdownlint |
| 46 | + exclude: README.md |
| 47 | + |
| 48 | + - repo: https://github.com/Yelp/detect-secrets |
| 49 | + rev: v1.5.0 |
| 50 | + hooks: |
| 51 | + - id: detect-secrets |
| 52 | + args: ["--baseline", ".secrets.baseline"] |
| 53 | + exclude: .secrets.baseline |
| 54 | + |
| 55 | + - repo: local |
| 56 | + hooks: |
| 57 | + # Ensure our GH actions are pinned to a specific hash |
| 58 | + - id: check-github-actions |
| 59 | + name: Check GitHub Actions for Pinned Dependencies |
| 60 | + entry: .hooks/check_pinned_hash_dependencies.py |
| 61 | + language: python |
| 62 | + files: \.github/.*\.yml$ |
| 63 | + |
| 64 | + - id: prettier |
| 65 | + name: Run prettier |
| 66 | + entry: .hooks/prettier.sh |
| 67 | + language: script |
| 68 | + types: [json, yaml] |
0 commit comments