blob: 5387686d5e8e27c188aa4bef9cfc3ae19ec4864a [file] [log] [blame]
Abhay Kumar40252eb2025-10-13 13:25:53 +00001fail_fast: false
2default_install_hook_types: [pre-commit, commit-msg]
3repos:
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