From 5980231734e24dee8d803204dccdf090572add52 Mon Sep 17 00:00:00 2001 From: Baris Can Durak Date: Wed, 28 Aug 2024 18:26:08 +0200 Subject: [PATCH] fixing ruff again --- scripts/format.sh | 4 ++-- scripts/lint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/format.sh b/scripts/format.sh index ecc08a8d..9ce8271e 100644 --- a/scripts/format.sh +++ b/scripts/format.sh @@ -4,8 +4,8 @@ set -x SRC=${1:-"src/mlstacks tests scripts"} # autoflake replacement: removes unused imports and variables -ruff $SRC --select F401,F841 --fix --exclude "__init__.py" --isolated +ruff check $SRC --select F401,F841 --fix --exclude "__init__.py" --isolated # sorts imports -ruff $SRC --select I --fix --ignore D +ruff check $SRC --select I --fix --ignore D ruff format $SRC diff --git a/scripts/lint.sh b/scripts/lint.sh index 4ad82763..3086c8ef 100644 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -7,7 +7,7 @@ SRC=${1:-"src/mlstacks tests"} SRC_NO_TESTS=${1:-"src/mlstacks"} TESTS=${1:-"tests"} -ruff $SRC_NO_TESTS +ruff check $SRC_NO_TESTS # autoflake replacement: checks for unused imports and variables ruff check $SRC --select F401,F841 --exclude "__init__.py" --isolated