repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.1.0 # Use the ref you want to point at hooks: - id: detect-aws-credentials - id: detect-private-key - repo: local hooks: - id: terraform-fmt name: terraform fmt description: runs terraform fmt entry: terraform fmt -recursive language: system pass_filenames: false # - repo: https://github.com/gruntwork-io/pre-commit # rev: v0.1.16 # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases # hooks: # - id: tflint # args: # - "--module" # - "--deep" # - "--config=.tflint.hcl" # - id: terraform-validate # - id: terraform-fmt # - repo: git://github.com/antonbabenko/pre-commit-terraform # rev: v1.52.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases # hooks: # - id: terraform_tfsec # - id: terraform_docs # - id: checkov