public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: .builds/
Date: Fri,  7 Apr 2023 09:52:39 +0000 (UTC)	[thread overview]
Message-ID: <1680860999.060ac0415092f432136d2e5664003a5d7e1e5509.sam@gentoo> (raw)

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	other threads:[~2023-04-07  9:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-07  9:52 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-07  9:52 [gentoo-commits] proj/portage:master commit in: .builds/ Sam James
2023-04-07  9:52 Sam James
2023-04-07  9:52 Sam James
2023-04-07  9:52 Sam James
2023-07-09  0:35 Sam James
2023-11-11  2:55 Sam James
2023-11-11  2:55 Sam James
2023-11-11  2:55 Sam James
2023-11-11  2:55 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1680860999.060ac0415092f432136d2e5664003a5d7e1e5509.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox