From cd56d3dd99db04f840647e456ebfc8534de350f8 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Tue, 30 May 2023 20:11:41 +0200 Subject: init --- .pre-commit-config.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .pre-commit-config.yaml (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..62f8a2f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +default_stages: [commit, push] + +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.0.1 + hooks: + - id: check-added-large-files + - id: trailing-whitespace + - id: detect-private-key + - id: end-of-file-fixer + + - repo: https://github.com/antonbabenko/pre-commit-terraform.git + rev: v1.77.3 + hooks: + - id: terraform_validate + stages: [commit] + - id: terraform_fmt + args: + - --args=-no-color + - --args=-diff + - --args=-write=false + - id: terraform_tflint + args: + - --args=--module -- cgit v1.2.3