Skip to content

Commit 86300de

Browse files
authored
Ruff sort imports (#549)
1 parent e0b89b2 commit 86300de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ format: PYTHON_FILES=.
5858
format_diff: PYTHON_FILES=$(shell git diff --relative= --name-only --diff-filter=d main '*.py' '*.ipynb')
5959

6060
format format_diff:
61+
[ "$(PYTHON_FILES)" = "" ] || ruff check --select I $(PYTHON_FILES) --fix
6162
[ "$(PYTHON_FILES)" = "" ] || ruff check $(PYTHON_FILES) --fix
6263
[ "$(PYTHON_FILES)" = "" ] || ruff format $(PYTHON_FILES)
6364

0 commit comments

Comments
 (0)