Skip to content

Commit

Permalink
Fix the ruff command error.
Browse files Browse the repository at this point in the history
Description:
The old command fails with newer versions of ruff.
The new command is backward compatible and works with both older and newer versions of ruff.
  • Loading branch information
Raj725 authored and srics committed Sep 2, 2024
1 parent 27549d3 commit 76c43cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ format_diff: PYTHON_FILES=$(shell git diff --relative= --name-only --diff-filter
format format_diff:
[ "$(PYTHON_FILES)" = "" ] || ruff check $(PYTHON_FILES) --fix
[ "$(PYTHON_FILES)" = "" ] || ruff format $(PYTHON_FILES)
[ "$(PYTHON_FILES)" = "" ] || ruff --select I --fix $(PYTHON_FILES)
[ "$(PYTHON_FILES)" = "" ] || ruff check --select I --fix $(PYTHON_FILES)

################################################
# HELP
Expand Down

0 comments on commit 76c43cd

Please sign in to comment.