Skip to content

Instantly share code, notes, and snippets.

@rosstimson
Last active June 18, 2018 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosstimson/993d6da5fee799632a5e0b391ade8bcf to your computer and use it in GitHub Desktop.
Save rosstimson/993d6da5fee799632a5e0b391ade8bcf to your computer and use it in GitHub Desktop.
pre-commit config for Terraform projects.
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v1.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- id: check-merge-conflict
- id: detect-aws-credentials
- id: detect-private-key
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.7.3
hooks:
- id: terraform_fmt
- id: terraform_validate_with_variables
- id: terraform_docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment