Skip to content

Commit

Permalink
Ruff sort imports (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj725 authored Sep 17, 2024
1 parent e0b89b2 commit 86300de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ format: PYTHON_FILES=.
format_diff: PYTHON_FILES=$(shell git diff --relative= --name-only --diff-filter=d main '*.py' '*.ipynb')

format format_diff:
[ "$(PYTHON_FILES)" = "" ] || ruff check --select I $(PYTHON_FILES) --fix
[ "$(PYTHON_FILES)" = "" ] || ruff check $(PYTHON_FILES) --fix
[ "$(PYTHON_FILES)" = "" ] || ruff format $(PYTHON_FILES)

Expand Down

0 comments on commit 86300de

Please sign in to comment.