Skip to content

Commit

Permalink
Deduplicate per feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Parraga <[email protected]>
  • Loading branch information
Sovietaced committed Jun 17, 2024
1 parent e8748ef commit 40dafb4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions boilerplate/flyte/golang_test_targets/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst

LINT_FLAGS ?=

.PHONY: download_tooling
download_tooling: #download dependencies (including test deps) for the package
Expand All @@ -14,11 +15,11 @@ generate: download_tooling #generate go code

.PHONY: lint
lint: download_tooling #lints the package for common code smells
GL_DEBUG=linters_output,env golangci-lint run --deadline=5m --exclude deprecated -v
GL_DEBUG=linters_output,env golangci-lint run $(LINT_FLAGS) --deadline=5m --exclude deprecated -v

.PHONY: lint-fix
lint-fix: download_tooling #lint the package for common code smells. fixes files in-place
GL_DEBUG=linters_output,env golangci-lint run --fix --deadline=5m --exclude deprecated -v
lint-fix: LINT_FLAGS=--fix
lint-fix: lint

.PHONY: mod_download
mod_download: #download dependencies (including test deps) for the package
Expand Down

0 comments on commit 40dafb4

Please sign in to comment.