Skip to content

Commit

Permalink
Add tfsort to pre-commit hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Schwarz <[email protected]>
  • Loading branch information
rswrz committed Sep 19, 2024
1 parent 89b3987 commit 6130dc3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ repos:
hooks:
- id: terraform-docs-system
args: ["."]
- repo: local
hooks:
- id: tfsort
name: Sort Terraform variables
language: system
types: [terraform]
entry: bash -c 'for f in $@; do tfsort "$f"; done' --
files: ^variables|outputs\.tf$
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: "v1.92.0"
hooks:
Expand Down

0 comments on commit 6130dc3

Please sign in to comment.