From 86300de02b8b6ac04dc58fc9e4677274f9148b8f Mon Sep 17 00:00:00 2001 From: Rajendra Kadam Date: Tue, 17 Sep 2024 09:43:14 +0530 Subject: [PATCH] Ruff sort imports (#549) --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 8450dcbb..0199bea1 100644 --- a/Makefile +++ b/Makefile @@ -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)