Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/__call-common-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,25 @@ jobs:

- name: Python - nbqa flake8
if: always()
# TODO: add problem matcher: https://github.com/gustavgransbo/flake8-github-annotations/issues/11
run: |
echo "::group::problem matcher"
set +e
error=0
python -m nbqa flake8 \
--color=always \
--format=github \
--verbose \
.
error=$?
set -e
echo "::endgroup::"

# run nbqa flake8 again with human friendly output if there were errors
if [ $error -ne 0 ]; then
python -m nbqa flake8 \
--color=always \
--verbose \
.
fi

- name: Python - nb-clean
if: always()
Expand Down