Skip to content

Commit 37f01b9

Browse files
authored
Merge pull request #6 from opsgang/fix/file-type-instead-extension
Use file type instead extension
2 parents 36739b3 + 9bf432b commit 37f01b9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.pre-commit-hooks.yaml

Lines changed: 4 additions & 2 deletions
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)