We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faf530d commit 6522345Copy full SHA for 6522345
1 file changed
.github/workflows/__call-common-lint.yml
@@ -356,12 +356,25 @@ jobs:
356
357
- name: Python - nbqa flake8
358
if: always()
359
- # TODO: add problem matcher: https://github.com/gustavgransbo/flake8-github-annotations/issues/11
360
run: |
+ echo "::group::problem matcher"
361
+ set +e
362
+ error=0
363
python -m nbqa flake8 \
- --color=always \
364
+ --format=github \
365
--verbose \
366
.
367
+ error=$?
368
+ set -e
369
+ echo "::endgroup::"
370
+
371
+ # run nbqa flake8 again with human friendly output if there were errors
372
+ if [ $error -ne 0 ]; then
373
+ python -m nbqa flake8 \
374
+ --color=always \
375
+ --verbose \
376
+ .
377
+ fi
378
379
- name: Python - nb-clean
380
0 commit comments