A pre-commit hook to rewrite Terraform configuration files to a canonical format.
.pre-commit-config.yaml
:
- repo: https://github.com/melmorabity/pre-commit-terraform-fmt
rev: 0.0.1
hooks:
- id: terraform-fmt
# Optional argument: path to the Terraform executable
# args: [--terraform=/usr/local/bin/terraform]