Added formatting for tfvars (fixes #4) (#6)

This commit is contained in:
Anton Babenko 2018-01-15 16:12:51 +01:00 committed by GitHub
commit bd50003bd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 28 deletions

View file

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