From 425e8760af7f2f535f833852e641375cf75d47dd Mon Sep 17 00:00:00 2001 From: James Allenby Date: Tue, 23 Jun 2026 20:20:35 +0100 Subject: [PATCH] chore: add pre-commit config --- .gitignore | 1 + .pre-commit-config.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.gitignore b/.gitignore index f4328f8..de1b5e4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ terraform.tfstate.backup !.gitignore !.editorconfig !.vscode +!.pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..c9abf1b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: check-json + - id: check-yaml + - id: end-of-file-fixer + - id: pretty-format-json + - id: trailing-whitespace + - repo: https://github.com/tofuutils/pre-commit-opentofu + rev: v2.4.2 + hooks: + - id: tofu_validate + - id: tofu_fmt