chore: add pre-commit config

This commit is contained in:
2026-06-23 20:20:35 +01:00
parent 0f0f07b1d0
commit 425e8760af
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -6,3 +6,4 @@ terraform.tfstate.backup
!.gitignore
!.editorconfig
!.vscode
!.pre-commit-config.yaml
+14
View File
@@ -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