diff --git a/scripts/format.sh b/scripts/format.sh index ecc08a8..9ce8271 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 4ad8276..3086c8e 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