aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2022-02-09 19:48:10 -0600
committerSam James <sam@gentoo.org>2022-02-21 03:50:54 +0000
commitea97f7d77fd80ff9c380f77c64ffa9060e6a41cb (patch)
tree0096292f9ceceb586f96db16050dbfaf1195a4d5 /.github
parentBlacken previously missed Python files (diff)
downloadportage-ea97f7d77fd80ff9c380f77c64ffa9060e6a41cb.tar.gz
portage-ea97f7d77fd80ff9c380f77c64ffa9060e6a41cb.tar.bz2
portage-ea97f7d77fd80ff9c380f77c64ffa9060e6a41cb.zip
CI: also lint python files that Black doesn't automatically detect
Signed-off-by: John Helmert III <ajak@gentoo.org> Closes: https://github.com/gentoo/portage/pull/787 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/black.yml8
1 files changed, 8 insertions, 0 deletions
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 }}