Skip to content

Commit

Permalink
Maintain equal --ignore option for both flake8 invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed May 5, 2022
1 parent 6c7d190 commit b092e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Get errors from base branch
run: |
tmpbefore=$(mktemp)
find src -name \*.py -exec flake8 --application-import-names middlewared --ignore=E402,E501,W504 {} + | egrep -v "alembic/versions/|usr/local/share/pysnmp/mibs/" > $tmpbefore
find src -name \*.py -exec flake8 --application-import-names middlewared --ignore=I101,E402,E501,W504 {} + | egrep -v "alembic/versions/|usr/local/share/pysnmp/mibs/" > $tmpbefore
num_errors_before=`cat $tmpbefore | wc -l`
echo "OLD_ERROR_FILE=${tmpbefore}" >> $GITHUB_ENV
echo "OLD_ERRORS=${num_errors_before}" >> $GITHUB_ENV
Expand Down

0 comments on commit b092e14

Please sign in to comment.