mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
parent
37dfe9ab4b
commit
bd50003bd7
5 changed files with 29 additions and 28 deletions
10
README.md
10
README.md
|
|
@ -2,15 +2,15 @@
|
|||
|
||||
[](https://www.codetriage.com/antonbabenko/pre-commit-terraform)
|
||||
|
||||
Single [pre-commit](http://pre-commit.com/) hook which runs `terraform fmt` on `*.tf` files.
|
||||
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.2.0
|
||||
hooks:
|
||||
- id: terraform_fmt
|
||||
- repo: git://github.com/antonbabenko/pre-commit-terraform
|
||||
sha: v1.3.0
|
||||
hooks:
|
||||
- id: terraform_fmt
|
||||
```
|
||||
|
||||
Enjoy the clean code!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue