build: add make pre-commit target #30

Merged
benvin merged 1 commits from benvin/make-pre-commit into main 2026-11-21 20:28:48 +11:00
Showing only changes of commit 22d3d5ba85 - Show all commits
+4 -1
View File
@@ -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 .