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 8f7886e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ repos:
rev: "v1.77.0"
hooks:
- id: terraform_fmt
- id: terraform_validate
args:
- --tf-init-args=-backend=false
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 8f7886e

Please sign in to comment.