2022-10-30 14:21:20 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
# Description: lint CI related python scripts/tests
|
2022-11-20 15:36:28 +00:00
|
|
|
# https://postmarketos.org/pmb-ci
|
2022-10-30 14:21:20 +00:00
|
|
|
|
|
|
|
if [ "$(id -u)" = 0 ]; then
|
|
|
|
set -x
|
2024-01-18 21:52:17 +00:00
|
|
|
apk -q add ruff
|
2022-10-30 14:21:20 +00:00
|
|
|
exec su "${TESTUSER:-build}" -c "sh -e $0"
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# shellcheck disable=SC2046
|
2024-01-18 21:52:17 +00:00
|
|
|
ruff --ignore E501,F401,E722,W605 $(find .ci -name '*.py')
|