Skip to content

Commit

Permalink
Add terraform 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 a3f72ae commit c8c23ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ repos:
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
3 changes: 3 additions & 0 deletions {{cookiecutter.project_dirname}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ repos:
rev: "v1.77.0"
hooks:
- id: terraform_fmt
- id: terraform_validate
args:
- --tf-init-args=-backend=false
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.4"
hooks:
Expand Down

0 comments on commit c8c23ad

Please sign in to comment.