commit:     060ac0415092f432136d2e5664003a5d7e1e5509
Author:     Oskari Pirhonen <xxc3ncoredxx <AT> gmail <DOT> com>
AuthorDate: Fri Mar 31 05:30:10 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr  7 09:49:59 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=060ac041

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 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .builds/lint.yml | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

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

Reply via email to