diff --git a/.scripts/format.sh b/.scripts/format.sh index c0ff409..8113e92 100755 --- a/.scripts/format.sh +++ b/.scripts/format.sh @@ -7,8 +7,8 @@ export ZENML_DEBUG=1 export ZENML_ANALYTICS_OPT_IN=false # autoflake replacement: removes unused imports and variables -ruff check $SRC --select F401,F841 --fix --exclude "__init__.py" --isolated +ruff $SRC --select F401,F841 --fix --exclude "__init__.py" --isolated # sorts imports -ruff check $SRC --select I --fix --ignore D +ruff $SRC --select I --fix --ignore D black $SRC diff --git a/copier.yml b/copier.yml index 607fedd..2ffa021 100644 --- a/copier.yml +++ b/copier.yml @@ -133,7 +133,7 @@ _tasks: {% if _copier_conf.os == 'windows' %} echo "Auto-formatting not supported on Windows" {% else %} - {{ _copier_python }} -m ruff check --select F401,F841 --fix \ + {{ _copier_python }} -m ruff --select F401,F841 --fix \ --exclude "__init__.py" --isolated \ steps pipelines run.py > /dev/null 2>&1 || true {% endif %} @@ -142,7 +142,7 @@ _tasks: {% if _copier_conf.os == 'windows' %} echo "Auto-formatting not supported on Windows" {% else %} - {{ _copier_python }} -m ruff check --select I \ + {{ _copier_python }} -m ruff --select I \ --fix --ignore D \ steps pipelines run.py > /dev/null 2>&1 || true {% endif %}