Skip to content

Commit 9bf432b

Browse files
committed
File type used instead file extension.
1 parent 36739b3 commit 9bf432b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.pre-commit-hooks.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
description: Formats terraform scripts into the correct checkstyle
44
entry: bin/tf_fmt.sh
55
language: script
6-
files: \.tf$
6+
types:
7+
- terraform
78
exclude: \.terraform\/.*$
89

910
- id: terraform_validate
1011
name: terraform_validate
1112
description: Validates terraform scripts syntax
1213
entry: bin/tf_validate.sh
1314
language: script
14-
files: \.tf$
15+
types:
16+
- terraform
1517
exclude: \.terraform\/.*$
1618

1719
- id: prometheus_check_rules

0 commit comments

Comments
 (0)