summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn L. Villalovos <openstack.org@sodarock.com>2018-04-11 09:33:45 -0700
committerDmitry Tantsur <divius.inside@gmail.com>2018-05-28 08:36:07 +0000
commit4edda4842392abebc0531f79e838047c6b97be16 (patch)
treed359755530e1141d5192ccf93aad25a39ee845aa
parent9928e15c7f706dd84104a0df3488a928dde7b20d (diff)
downloadironic-python-agent-4edda4842392abebc0531f79e838047c6b97be16.tar.gz
flake8: Add W503 to ignore list as invalid
W503 according to the [1] pycodestyle docs is not supposed to be enabled. But it is. W503 is something we will likely never enable as it is a personal style decision and can change depending on the code. There is no one right answer. Interestingly there is also a W504 which is the opposite check. [1] http://pycodestyle.pycqa.org/en/latest/intro.html#error-codes Change-Id: I1025f21a57837e97280f82baba50fdd823a190cc (cherry picked from commit c09634ad80988e960af2bcaca737be3e87ba7592)
-rw-r--r--tox.ini4
1 files changed, 3 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 816230c4..9e5bfbcb 100644
--- a/tox.ini
+++ b/tox.ini
@@ -63,7 +63,9 @@ envdir = {toxworkdir}/venv
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
-ignore = E129
+# [E129] visually indented line with same indent as next logical line.
+# [W503] Line break before binary operator.
+ignore = E129,W503
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,imagebuild/tinyipa/tinyipafinal,imagebuild/tinyipa/tinyipabuild
import-order-style = pep8
application-import-names = ironic_python_agent