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