Merge pull request 'build: add make pre-commit target' (#30) from benvin/make-pre-commit into main
ci/woodpecker/tag/release Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful
Reviewed-on: #30
This commit was merged in pull request #30.
This commit is contained in:
@@ -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 .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user