pre-commit git hooks to take care of OpenTofu configurations
  • Shell 86.3%
  • Dockerfile 10.8%
  • Python 2.9%
Find a file
2018-01-15 16:12:51 +01:00
.pre-commit-config.yaml Added formatting for tfvars (fixes #4) (#6) 2018-01-15 16:12:51 +01:00
.pre-commit-hooks.yaml Added formatting for tfvars (fixes #4) (#6) 2018-01-15 16:12:51 +01:00
hooks.yaml Added formatting for tfvars (fixes #4) (#6) 2018-01-15 16:12:51 +01:00
README.md Added formatting for tfvars (fixes #4) (#6) 2018-01-15 16:12:51 +01:00
terraform_fmt.sh Added formatting for tfvars (fixes #4) (#6) 2018-01-15 16:12:51 +01:00

pre-commit-terraform hook

Help Contribute to Open Source

Single pre-commit hook which runs terraform fmt on Terraform configuration files (both *.tf and *.tfvars).

An example .pre-commit-config.yaml:

- repo: git://github.com/antonbabenko/pre-commit-terraform
  sha: v1.3.0
  hooks:
    - id: terraform_fmt

Enjoy the clean code!