Skip to content

Commit 7060428

Browse files
authored
Merge pull request #133 from target/ruff-check-fix
Pass --fix to ruff as an option to check, not to ruff itself
2 parents 2d7c956 + 83b3ac6 commit 7060428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ check: check-py-ruff-format check-py-ruff-lint check-py-mypy ## Run all checks
118118

119119
.PHONY: check-py-ruff-lint
120120
check-py-ruff-lint: ## Run ruff linter
121-
$(RUFF) $(RUFF_OPTS) check $(MODULE_BASE_DIR) $(TESTS_BASE_DIR) || \
121+
$(RUFF) $(RUFF_OPTS) check $(RUFF_CHECK_OPTS) $(MODULE_BASE_DIR) $(TESTS_BASE_DIR) || \
122122
(echo "$(COLOR_RED)Run '$(notdir $(MAKE)) check-py-ruff-fix' to fix some of these automatically if [*] appears above, then run '$(notdir $(MAKE)) $(MAKECMDGOALS)' again." && false)
123123

124124
.PHONY: check-py-ruff-fix
125125
check-py-ruff-fix: ## Run ruff linter
126-
$(MAKE) check-py-ruff-lint RUFF_OPTS=--fix
126+
$(MAKE) check-py-ruff-lint RUFF_CHECK_OPTS=--fix
127127

128128
.PHONY: check-py-black
129129
check-py-black: ## Runs black code formatter

0 commit comments

Comments
 (0)