pre-commit-opentofu/README.md

16 lines
491 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
[![Help Contribute to Open Source](https://www.codetriage.com/antonbabenko/pre-commit-terraform/badges/users.svg)](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!