pre-commit-opentofu/README.md
2018-01-15 16:12:51 +01:00

16 lines
527 B
Markdown

# pre-commit-terraform hook
[![Help Contribute to Open Source](https://www.codetriage.com/antonbabenko/pre-commit-terraform/badges/users.svg)](https://www.codetriage.com/antonbabenko/pre-commit-terraform)
Single [pre-commit](http://pre-commit.com/) hook which runs `terraform fmt` on Terraform configuration files (both `*.tf` and `*.tfvars`).
An example `.pre-commit-config.yaml`:
```yaml
- repo: git://github.com/antonbabenko/pre-commit-terraform
sha: v1.3.0
hooks:
- id: terraform_fmt
```
Enjoy the clean code!