1 |
commit: ea97f7d77fd80ff9c380f77c64ffa9060e6a41cb |
2 |
Author: John Helmert III <ajak <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 10 01:48:10 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 21 03:50:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ea97f7d7 |
7 |
|
8 |
CI: also lint python files that Black doesn't automatically detect |
9 |
|
10 |
Signed-off-by: John Helmert III <ajak <AT> gentoo.org> |
11 |
Closes: https://github.com/gentoo/portage/pull/787 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
.github/workflows/black.yml | 8 ++++++++ |
15 |
1 file changed, 8 insertions(+) |
16 |
|
17 |
diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml |
18 |
index b04fb15cb..d3c3fa3e1 100644 |
19 |
--- a/.github/workflows/black.yml |
20 |
+++ b/.github/workflows/black.yml |
21 |
@@ -7,4 +7,12 @@ jobs: |
22 |
runs-on: ubuntu-latest |
23 |
steps: |
24 |
- uses: actions/checkout@v2 |
25 |
+ - name: "Collect stragglers that Black misses" |
26 |
+ id: stragglers |
27 |
+ run: | |
28 |
+ echo "::set-output name=missed::$( |
29 |
+ find bin repoman runtests -type f -not -name '*.py' -not -name '*.sh' | \ |
30 |
+ xargs grep -l '#!/usr/bin/env python' | tr $'\n' ' ')" |
31 |
- uses: psf/black@stable |
32 |
+ with: |
33 |
+ src: . ${{ steps.stragglers.outputs.missed }} |