| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 1 | fail_fast: false |
| 2 | default_install_hook_types: [pre-commit, commit-msg] |
| 3 | repos: |
| 4 | - repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | rev: v6.0.0 |
| 6 | hooks: |
| 7 | - id: check-merge-conflict |
| 8 | - id: check-yaml |
| 9 | - id: end-of-file-fixer |
| 10 | - id: fix-byte-order-marker |
| 11 | - id: mixed-line-ending |
| 12 | - id: trailing-whitespace |
| 13 | - repo: local |
| 14 | hooks: |
| 15 | - id: conventional-commit-msg-validation |
| 16 | name: commit message conventional validation |
| 17 | language: pygrep |
| 18 | entry: '^(?:fixup! )?(breaking|build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w `])+([\s\S]*)' |
| 19 | args: [--multiline, --negate] |
| 20 | stages: [commit-msg] |
| 21 | - id: commit-msg-needs-to-be-signed-off |
| 22 | name: commit message needs to be signed off |
| 23 | language: pygrep |
| 24 | entry: "^Signed-off-by:" |
| 25 | args: [--multiline, --negate] |
| 26 | stages: [commit-msg] |
| 27 | - id: gofmt |
| 28 | name: gofmt |
| 29 | description: Format files with gofmt. |
| 30 | entry: gofmt -l |
| 31 | language: golang |
| 32 | files: \.go$ |
| 33 | args: [] |
| 34 | - repo: https://github.com/gitleaks/gitleaks |
| 35 | rev: v8.28.0 |
| 36 | hooks: |
| 37 | - id: gitleaks |
| 38 | - repo: https://github.com/golangci/golangci-lint |
| 39 | rev: v2.4.0 |
| 40 | hooks: |
| 41 | - id: golangci-lint |