diff --git a/Makefile b/Makefile index 6176316..edc7916 100755 --- a/Makefile +++ b/Makefile @@ -120,6 +120,21 @@ lint: $(LINT_DIR)/golangci-lint run +.PHONY: pre-commit unpre-commit pre-commit-run + +# Activate pre-commit hooks +pre-commit: + pre-commit install --hook-type pre-commit + +# Deactivate pre-commit hooks +unpre-commit: + pre-commit uninstall --hook-type pre-commit + +# Run pre-commit hooks +pre-commit-run: + @pre-commit run --all-files --hook-stage manual + + # Print version version: @echo $(VERSION)