|
| 1 | +default_stages: [pre-push] |
| 2 | +files: '.*' |
| 3 | +fail_fast: true |
| 4 | +repos: |
| 5 | + # Syncs pre-commit dependencies with the latest versions. |
| 6 | + - repo: https://github.com/mxr/sync-pre-commit-deps |
| 7 | + rev: "v0.0.1" |
| 8 | + hooks: |
| 9 | + - id: sync-pre-commit-deps |
| 10 | + # Pre-commit hooks for general file checks |
| 11 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 12 | + rev: "v5.0.0" |
| 13 | + hooks: |
| 14 | + - id: check-added-large-files |
| 15 | + - id: check-case-conflict |
| 16 | + # - id: check-executables-have-shebangs |
| 17 | + # - id: check-json |
| 18 | + # - id: check-shebang-scripts-are-executable |
| 19 | + # - id: check-symlinks |
| 20 | + # - id: check-vcs-permalinks |
| 21 | + # - id: check-yaml |
| 22 | + # - id: destroyed-symlinks |
| 23 | + # - id: detect-private-key |
| 24 | + # - id: double-quote-string-fixer |
| 25 | + # - id: end-of-file-fixer |
| 26 | + # - id: fix-byte-order-marker |
| 27 | + # - id: mixed-line-ending |
| 28 | + # - id: pretty-format-json |
| 29 | + # args: [--autofix, --no-sort-keys] |
| 30 | + # - id: trailing-whitespace |
| 31 | + # ShellCheck hook for linting shell scripts |
| 32 | + # - repo: https://github.com/shellcheck-py/shellcheck-py |
| 33 | + # rev: "v0.10.0.1" |
| 34 | + # hooks: |
| 35 | + # - id: shellcheck |
| 36 | + # name: shellcheck |
| 37 | + # description: This hook runs shellcheck for linting shell scripts |
| 38 | + # Bashate hook for linting shell scripts |
| 39 | + # - repo: https://github.com/openstack/bashate |
| 40 | + # rev: "2.1.1" |
| 41 | + # hooks: |
| 42 | + # - id: bashate |
| 43 | + # name: bashate |
| 44 | + # description: This hook runs bashate for linting shell scripts |
| 45 | + # entry: bashate |
| 46 | + # language: python |
| 47 | + # types: [shell] |
| 48 | + # Actionlint for linting GitHub Actions YAML files |
| 49 | + # - repo: https://github.com/rhysd/actionlint |
| 50 | + # rev: "v1.7.3" |
| 51 | + # hooks: |
| 52 | + # - id: actionlint |
| 53 | + # Yamlfmt for formatting YAML files |
| 54 | + # - repo: https://github.com/google/yamlfmt |
| 55 | + # rev: "v0.13.0" |
| 56 | + # hooks: |
| 57 | + # - id: yamlfmt |
| 58 | + # Codespell for detecting common misspellings in code |
| 59 | + # - repo: https://github.com/codespell-project/codespell |
| 60 | + # rev: "v2.3.0" |
| 61 | + # hooks: |
| 62 | + # - id: codespell |
| 63 | + # Gitleaks for detecting secrets in Git repositories |
| 64 | + # - repo: https://github.com/gitleaks/gitleaks |
| 65 | + # rev: "v8.19.3" |
| 66 | + # hooks: |
| 67 | + # - id: gitleaks |
| 68 | + # Talisman for pre-commit Git hooks to detect sensitive files |
| 69 | + # - repo: https://github.com/thoughtworks/talisman |
| 70 | + # rev: "v1.32.0" |
| 71 | + # hooks: |
| 72 | + # - id: talisman-commit |
| 73 | + # entry: cmd --githook pre-commit |
0 commit comments