From aa3a88f7fdb2d3115778dfb562d209579c6d4c73 Mon Sep 17 00:00:00 2001 From: Rajendra Kadam Date: Fri, 30 Aug 2024 10:37:06 +0530 Subject: [PATCH] Fix the ruff command error. 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a71fb6f2..b2dbf300 100644 --- a/Makefile +++ b/Makefile @@ -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