2016-09-27 20:01:11 +02:00
# pre-commit-terraform hook
2016-09-27 19:47:26 +02:00
2018-01-03 22:26:39 -06:00
[](https://www.codetriage.com/antonbabenko/pre-commit-terraform)
2016-09-27 19:47:26 +02:00
Single [pre-commit ](http://pre-commit.com/ ) hook which runs `terraform fmt` on `*.tf` files.
An example `.pre-commit-config.yaml` :
```yaml
2016-09-27 21:47:08 +02:00
- repo: git://github.com/antonbabenko/pre-commit-terraform
2017-06-08 10:30:39 +02:00
sha: v1.2.0
2016-09-27 19:47:26 +02:00
hooks:
2016-09-27 21:47:08 +02:00
- id: terraform_fmt
2016-09-27 19:47:26 +02:00
```
2016-09-27 20:01:11 +02:00
Enjoy the clean code!