pmaports/.ci/ruff.sh
Pablo Correa Gómez 6fb42ecb3f
ci: enable unused-import in ruff
This was not possible to remove while add_pmbootstrap_to_import_path
was in use, since that module wasn't actually used, but just
imported. As the previous commit shows, this was important to have
enabled.

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7868>
2026-02-01 21:06:18 +00:00

14 lines
273 B
Bash
Executable file

#!/bin/sh -e
# Description: lint CI related python scripts/tests
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add ruff
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
set -x
# shellcheck disable=SC2046
ruff check $(find .ci -name '*.py')