diff --git a/Makefile b/Makefile index ea663e3..6d3599f 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ ARCH ?= $(shell go env GOARCH) # shell for-loop over $(BINARIES). pkgpath = ./cmd/$$b -.PHONY: all build test lint fmt clean install completions rpm rpm-package patch minor major _tag +.PHONY: all build test lint pre-commit fmt clean install completions rpm rpm-package patch minor major _tag all: build @@ -30,6 +30,9 @@ test: lint: golangci-lint run ./... +pre-commit: + pre-commit run --all-files + fmt: gofmt -w .