Skip to content

Commit

Permalink
Add terraform fmt and validate in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
trottomv committed Apr 20, 2023
1 parent 8146ba0 commit a5b210b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,13 @@ repos:
hooks:
- id: pip-audit
args: ["--require-hashes", "--requirement", "requirements/local.txt"]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: "v1.77.0"
hooks:
- id: terraform_fmt
- id: terraform_validate
args:
- --tf-init-args=-backend=false
- --tf-init-args=-lock=false
- --tf-init-args=-upgrade
- --hook-config=--retry-once-with-cleanup=true

0 comments on commit a5b210b

Please sign in to comment.