From 6d84efe81e9a17f98ec8d7a0ba6351b6b7d398c0 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 16 Nov 2025 13:29:48 +1100 Subject: [PATCH] feat: add pre-commit - ran 'pre-commit install' - add pre-commit configuration - test yaml + terraform related checks - terragrunt-hcl-fmt for policy hcl files --- .pre-commit-config.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..623e022 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,12 @@ +repos: + - repo: https://github.com/gruntwork-io/pre-commit + rev: v0.1.30 + hooks: + - id: terraform-fmt + - id: terraform-validate + - id: tflint + - id: terragrunt-hcl-fmt + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.37.1 + hooks: + - id: yamllint