commit:     ea97f7d77fd80ff9c380f77c64ffa9060e6a41cb
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 10 01:48:10 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 21 03:50:54 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=ea97f7d7

CI: also lint python files that Black doesn't automatically detect

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/787
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/black.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml
index b04fb15cb..d3c3fa3e1 100644
--- a/.github/workflows/black.yml
+++ b/.github/workflows/black.yml
@@ -7,4 +7,12 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
+      - name: "Collect stragglers that Black misses"
+        id: stragglers
+        run: |
+          echo "::set-output name=missed::$(
+          find bin repoman runtests -type f -not -name '*.py' -not -name 
'*.sh' | \
+          xargs grep -l '#!/usr/bin/env python' | tr $'\n' ' ')"
       - uses: psf/black@stable
+        with:
+            src: . ${{ steps.stragglers.outputs.missed }}

Reply via email to