mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
14 lines
313 B
Markdown
14 lines
313 B
Markdown
# pre-commit-terraform hook
|
|
|
|
Single [pre-commit](http://pre-commit.com/) hook which runs `terraform fmt` on `*.tf` files.
|
|
|
|
An example `.pre-commit-config.yaml`:
|
|
|
|
```yaml
|
|
- repo: git://github.com/antonbabenko/pre-commit-terraform
|
|
sha: v1.0.0
|
|
hooks:
|
|
- id: terraform_fmt
|
|
```
|
|
|
|
Enjoy the clean code!
|