Skip to content

Commit 34d0741

Browse files
committed
example: shellcheck-run-steps
Signed-off-by: dann frazier <dann.frazier@chainguard.dev>
1 parent f70da2f commit 34d0741

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

example.pre-commit-config.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ repos:
66
- repo: https://github.com/chainguard-dev/pre-commit-hooks
77
rev: 71fca50bcd1006b5cbcf71f03a3b493f48c4af7f
88
hooks:
9-
# Not quite ready for prime time yet, due to a tool dependency outside the pre-commit managed environment.
10-
#- id: shellcheck-run-steps
9+
- id: shellcheck-run-steps
10+
files: '^[^.][^/]*\.yaml$' # matches non-hidden .yaml files at the top level only
11+
args:
12+
- "--" # options to hook before this, options to shellcheck after
13+
- "-S"
14+
- "error"
15+
- "--" # terminates shellcheck options, rest will be filenames
1116
- id: check-for-epoch-bump
1217
files: |
1318
(?x)^(

0 commit comments

Comments
 (0)