diff options
author | 2023-03-31 00:30:10 -0500 | |
---|---|---|
committer | 2023-04-07 10:49:59 +0100 | |
commit | 060ac0415092f432136d2e5664003a5d7e1e5509 (patch) | |
tree | 426f66e3346e6673ec20e2713d0c41d03ddeeccc /.builds | |
parent | ci: NIH actions/setup-python for sourcehut (diff) | |
download | portage-060ac0415092f432136d2e5664003a5d7e1e5509.tar.gz portage-060ac0415092f432136d2e5664003a5d7e1e5509.tar.bz2 portage-060ac0415092f432136d2e5664003a5d7e1e5509.zip |
ci: run pylint on sourcehut
Run the pylint portion of the lint tasks (for each version given in
PYTHON_VERSIONS) on sourcehut builds.
Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to '.builds')
-rw-r--r-- | .builds/lint.yml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/.builds/lint.yml b/.builds/lint.yml index 675fde757..7d17f539e 100644 --- a/.builds/lint.yml +++ b/.builds/lint.yml @@ -21,11 +21,27 @@ tasks: pip install black deactivate + - setup-pylint: | + for py in "${PYTHON_VERSIONS[@]}"; do + source ".venv-$py/bin/activate" + pip install pylint + deactivate + done + - black: | source .venv/bin/activate cd portage STRAGGLERS="$(find bin runtests -type f -not -name '*.py' -not -name '*.sh' | \ xargs grep -l '#!/usr/bin/env python' | \ tr '\n' ' ')" - black --check --diff --color . $STRAGGLERS + time black --check --diff --color . $STRAGGLERS deactivate + + - pylint: | + for py in "${PYTHON_VERSIONS[@]}"; do + source ".venv-$py/bin/activate" + pushd portage + time ./run-pylint + popd + deactivate + done |