From 3feb96dc4f6672d19fbced99ed95a98a756fcac5 Mon Sep 17 00:00:00 2001 From: "willian.eth" Date: Sun, 3 Jul 2022 04:54:23 +0200 Subject: [PATCH] Add gruntwork pre-commit hooks (#381) --- .pre-commit-config.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc653221..e26af978 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,10 +11,11 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: - - id: trailing-whitespace - args: [--markdown-linebreak-ext=md] + - id: check-merge-conflict - id: end-of-file-fixer - id: mixed-line-ending + - id: trailing-whitespace + args: [--markdown-linebreak-ext=md] - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.2.0 hooks: @@ -28,3 +29,9 @@ repos: rev: v2.1.1 hooks: - id: forbid-secrets + - repo: https://github.com/gruntwork-io/pre-commit + rev: v0.1.17 + hooks: + - id: terraform-fmt + - id: terraform-validate + - id: tflint