Unverified Commit 10fa720d authored by Andrew's avatar Andrew Committed by GitHub
Browse files

Revert flake8 import order rules (#8780)

This generates tons of false-positives on 13-stable code that
we don't want to refactor.

reverts 977a78c6
Showing with 3 additions and 3 deletions
+3 -3
......@@ -20,11 +20,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 flake8-import-order
pip install flake8
- name: Get current errors
run: |
tmpafter=$(mktemp)
find src -name \*.py -exec flake8 --application-import-names middlewared --ignore=E402,E501,W504 {} + | egrep -v "alembic/versions/|usr/local/share/pysnmp/mibs/" > $tmpafter
find src -name \*.py -exec flake8 --ignore=E402,E501,W504 {} + | egrep -v "alembic/versions/|usr/local/share/pysnmp/mibs/" > $tmpafter
num_errors_after=`cat $tmpafter | wc -l`
echo "CURRENT_ERROR_FILE=${tmpafter}" >> $GITHUB_ENV
echo "CURRENT_ERRORS=${num_errors_after}" >> $GITHUB_ENV
......@@ -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 --ignore=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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment