Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions base/container_scripts/run_lint_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ export XDG_CONFIG_HOME=/opt/scripts/

cd "/src/$PACKAGE/"

black --check --diff .

if [[ -f flake8.cfg ]];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming flake8 commands should get replaced too as they also cause errors otherwise

/opt/oci_env/base/container_scripts/run_lint_tests.sh: line 23: flake8: command not found

then
flake8 --config flake8.cfg "${PACKAGE}"
else
flake8
fi
ruff format --check --diff
ruff check

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commands are based on the usage in pulp_deb CI


[ ! -x .ci/scripts/extra_linting.sh ] || .ci/scripts/extra_linting.sh
Loading