Skip to content

Commit 97241bc

Browse files
committed
Updated pre-commit-config example with changes based on linting the 3 main package repos
1 parent 3e6f037 commit 97241bc

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

example.pre-commit-config.yaml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,44 @@ repos:
66
- repo: https://github.com/chainguard-dev/pre-commit-hooks
77
rev: 71fca50bcd1006b5cbcf71f03a3b493f48c4af7f
88
hooks:
9+
- id: shellcheck-run-steps # Not quite ready yet for prime time
910
- id: check-for-epoch-bump
10-
- id: shellcheck-run-steps
1111
- repo: https://github.com/chainguard-dev/yam
12-
rev: 693d578a25dccd5beb548984d7a3cbda40c3af41 # frozen: v0.2.16
12+
rev: 693d578a25dccd5beb548984d7a3cbda40c3af41 # frozen: v0.2.16
1313
hooks:
1414
- id: yam
15-
# TODO: Swap with CG repo: - repo: https://github.com/wolfi-dev/wolfictl
16-
- repo: https://github.com/amberarcadia/wolfictl
17-
rev: 85b1301c4d17fcd0c8f0ce455724941cae815d68
15+
exclude: |
16+
(?x)^(
17+
.*\.patch
18+
)$
19+
- repo: https://github.com/wolfi-dev/wolfictl
20+
rev: ddadb9365d6d78ee33e13801b12eabfcb04298a7 # 2025-06-20
1821
hooks:
1922
- id: wolfictl-lint
2023
- repo: https://github.com/golangci/misspell
21-
rev: e78f9b6cd537559a24525b6ea7e182794edfd31f # frozen: v0.7.0
24+
rev: e78f9b6cd537559a24525b6ea7e182794edfd31f # frozen: v0.7.0
2225
hooks:
2326
- id: misspell
27+
# To add exclusions, add (misspelled) words to the -i arg, comma separated, or
28+
# add files to the exclude array (with trailing | unless last it's the last one).
29+
# Syntax info: https://pre-commit.com/#regular-expressions
30+
# Dictionary of corrections: https://github.com/golangci/misspell/blob/main/words.go
31+
args:
32+
- "-i=routeros,mosquitto,metagem,rela,exportfs"
33+
exclude: |
34+
(?x)^(
35+
aws-network-policy-agent/pkg/ebpf/c/vmlinux.h-aarch64|
36+
aws-network-policy-agent/pkg/ebpf/c/vmlinux.h-x86_64|
37+
.*\.patch
38+
)$
2439
- repo: https://github.com/pre-commit/pre-commit-hooks
2540
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0
2641
hooks:
2742
- id: check-yaml
43+
exclude: |
44+
(?x)^(
45+
.*\.patch
46+
)$
2847
- id: forbid-submodules
2948
- id: check-added-large-files
3049
- id: check-case-conflict

0 commit comments

Comments
 (0)