Skip to content

Commit

Permalink
The "error" flagged by W503 is actually preferred now. Recent version…
Browse files Browse the repository at this point in the history
…s of flake are going to start warning on the opposite, W504.
  • Loading branch information
ericvaandering committed Feb 12, 2020
1 parent e1edf26 commit 5dbf6ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
max-line-length=256
ignore=E731,E722
ignore=E731,E722,W503
2 changes: 1 addition & 1 deletion tools/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ignore=E722
[flake8]
max-line-length=256
ignore=E722
ignore=E722,W503
''')
f.close()
f = open(tempdir + '/.pylintrc', 'w')
Expand Down
2 changes: 1 addition & 1 deletion tools/travis/check_syntax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ echo '==============================='
echo 'Running flake8 '
echo '==============================='

flake8 --ignore=E501,E722 --exclude="*.cfg" bin/* lib/ tools/*.py
flake8 --ignore=E501,E722,W503 --exclude="*.cfg" bin/* lib/ tools/*.py

if [ $? -ne 0 ]; then
exit 1
Expand Down

0 comments on commit 5dbf6ce

Please sign in to comment.