feat: add make pre-commit target
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user