Skip to content

Commit fbb5e96

Browse files
committed
fix: make prek ignore .j2 files when running the shellcheck hook
1 parent de90875 commit fbb5e96

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

template/.pre-commit-config.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ repos:
3838
hooks:
3939
- id: shellcheck
4040
args: ["--severity=info"]
41+
# Needed to make prek ignore .j2 files when running this hook.
42+
# pre-commit does this by default.
43+
exclude: \.j2$
4144

4245
# WARNING (@NickLarsenNZ): Nix users need to install ruff first.
4346
# If you do not, you will need to delete the cached ruff binary shown in the

0 commit comments

Comments
 (0)