Skip to content

Commit

Permalink
Add terraform format pre-commit hook (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
somesylvie authored Sep 11, 2024
1 parent 6376de7 commit 0bf142a
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 @@ -32,3 +32,13 @@ repos:
- java
- groovy
pass_filenames: false

- repo: local
hooks:
- id: terraform-format
name: terraform-format
entry: bash -c 'terraform fmt -recursive -write'
language: system
types_or:
- terraform
pass_filenames: false

0 comments on commit 0bf142a

Please sign in to comment.