From 112794e6c94b0f7d74526bdc15a1e15d986d1707 Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Thu, 1 Oct 2020 10:55:02 +0200 Subject: [PATCH] Add pre-commit target to Makefile Signed-off-by: Ulysses Souza --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 6eca24821..ef5205fcb 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,8 @@ validate-go-mod: ## Validate go.mod and go.sum are up-to-date validate: validate-go-mod validate-headers ## Validate sources +pre-commit: all lint validate test e2e-local + help: ## Show help @echo Please specify a build target. The choices are: @grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'