Skip to content

Commit a5b210b

Browse files
committed
Add terraform fmt and validate in pre-commit
1 parent 8146ba0 commit a5b210b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,13 @@ repos:
5454
hooks:
5555
- id: pip-audit
5656
args: ["--require-hashes", "--requirement", "requirements/local.txt"]
57+
- repo: https://github.com/antonbabenko/pre-commit-terraform
58+
rev: "v1.77.0"
59+
hooks:
60+
- id: terraform_fmt
61+
- id: terraform_validate
62+
args:
63+
- --tf-init-args=-backend=false
64+
- --tf-init-args=-lock=false
65+
- --tf-init-args=-upgrade
66+
- --hook-config=--retry-once-with-cleanup=true

0 commit comments

Comments
 (0)