pre-commit-opentofu/README.md

14 lines
313 B
Markdown
Raw Normal View History

2016-09-27 20:01:11 +02:00
# pre-commit-terraform hook
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
sha: v1.0.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!