pre-commit-terraform hook Single pre-commit hook which runs terraform fmt on *.tf files. An example .pre-commit-config.yaml: - repo: git://github.com/antonbabenko/pre-commit-terraform sha: v1.0.0 hooks: - id: terraform_fmt Enjoy the clean code!