Skip to content

Commit

Permalink
fixing ruff again
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdurak committed Aug 28, 2024
1 parent edef2fa commit 5980231
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5980231

Please sign in to comment.