From 22d3d5ba85a38271d5cf0ea30636ccf2ea549d49 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Sat, 21 Nov 2026 18:05:50 +1100 Subject: [PATCH] build: add make pre-commit target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 . -- 2.47.3