Skip to content

Instantly share code, notes, and snippets.

@Maurifc
Created September 1, 2022 01:08
Show Gist options
  • Save Maurifc/4856f1ac3930fd21bc9c480475092dd9 to your computer and use it in GitHub Desktop.
Save Maurifc/4856f1ac3930fd21bc9c480475092dd9 to your computer and use it in GitHub Desktop.
Terraform - Basic .pre-commit config file
repos:
- repo: https://github.com/terraform-docs/terraform-docs
rev: "v0.16.0"
hooks:
- id: terraform-docs-go
args: ["markdown", "table", "--output-file", "README.md", "."]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: "v1.74.1"
hooks:
- id: terraform_fmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment