build: add make pre-commit target
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

This commit is contained in:
2026-11-21 18:05:50 +11:00
parent e21f41f35c
commit 22d3d5ba85
+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 .