mirror of
https://github.com/hanzo-fi/go-libs.git
synced 2026-10-30 20:53:44 +00:00
* chore: upgrade to go 1.25 Signed-off-by: Sylvain Rabot <[email protected]> * chore: update golangci-lint config Signed-off-by: Sylvain Rabot <[email protected]> * chore: fix linters warnings Signed-off-by: Sylvain Rabot <[email protected]> * chore: add fmt target to just that matches golangci-lint formatters Signed-off-by: Sylvain Rabot <[email protected]> * chore: use golangci-lint fmt to format code Signed-off-by: Sylvain Rabot <[email protected]> * chore: fix errcheck errors in tests Signed-off-by: Sylvain Rabot <[email protected]> * chore: fix linter errors in tests Signed-off-by: Sylvain Rabot <[email protected]> --------- Signed-off-by: Sylvain Rabot <[email protected]>
25 lines
320 B
Makefile
25 lines
320 B
Makefile
set dotenv-load
|
|
|
|
default:
|
|
@just --list
|
|
|
|
pre-commit: tidy generate lint
|
|
pc: pre-commit
|
|
|
|
lint:
|
|
@golangci-lint run --fix --build-tags it --timeout 5m
|
|
|
|
tidy:
|
|
@go mod tidy
|
|
|
|
generate:
|
|
@go generate ./...
|
|
|
|
tests:
|
|
@go test -race -covermode=atomic \
|
|
-coverprofile coverage.txt \
|
|
./...
|
|
|
|
fmt:
|
|
@golangci-lint fmt
|