Skip to content

Commit 4192605

Browse files
committed
support mix of variable and numerical num_shards
1 parent 18fe32f commit 4192605

File tree

5 files changed

+412
-135
lines changed

5 files changed

+412
-135
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ clean: ## Clean binary folders
2727
test: ## Run unit tests
2828
go test ./internal/... -timeout=30s -parallel=4 -race
2929

30+
.PHONY: lint-fix
31+
lint-fix: ## Fix Go linter issues
32+
@echo "==> Fixing linters errors..."
33+
$(shell go env GOPATH)/bin/fieldalignment -json -fix ./...
34+
golangci-lint run --fix
35+
36+
.PHONY: lint
37+
lint: ## Check Go linter issues
38+
@echo "==> Checking source code against linters..."
39+
golangci-lint run
40+
3041
.PHONY: test-update
3142
test-update: ## Run unit tests and update the golden files
3243
go test ./internal/... -timeout=30s -parallel=4 -race -update

0 commit comments

Comments
 (0)