feat: add make pre-commit target
ci/woodpecker/pr/pre-commit Pipeline failed
ci/woodpecker/pr/plan Pipeline failed

This commit is contained in:
2026-06-11 23:26:29 +10:00
parent 6203e4d0e2
commit 8e3eac286c
+4 -1
View File
@@ -1,4 +1,4 @@
.PHONY: init plan apply format .PHONY: init plan apply apply-if-changes format pre-commit
VAULT_AUTH_METHOD ?= approle VAULT_AUTH_METHOD ?= approle
VAULT_K8S_ROLE ?= woodpecker_terraform_git VAULT_K8S_ROLE ?= woodpecker_terraform_git
@@ -47,3 +47,6 @@ format:
@tofu fmt -recursive . @tofu fmt -recursive .
@echo "Formatting Terragrunt files..." @echo "Formatting Terragrunt files..."
@terragrunt hcl fmt @terragrunt hcl fmt
pre-commit:
@uvx pre-commit run --all-files