Ignore pep8 W503/W504
W503 has been reversed in current pep8, so we shouldn't start enforcing this here. W504 takes the opposite stance of W503. Neither of these seem worth enforcing in our code for now, just punt on a strict rule for this and aim for readable code. Change-Id: Id38b2629ea22792bbc7b4dce77fa9e7039be140f
This commit is contained in:
parent
614b2cb1d5
commit
80e37a3e61
10
tox.ini
10
tox.ini
|
@ -84,8 +84,16 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
|
|||
#
|
||||
# E251 unexpected spaces around keyword / parameter equals
|
||||
# reason: no improvement in readability
|
||||
# W503 line break before binary operator
|
||||
# reason: pep8 itself is not sure about this one and
|
||||
# reversed this rule in 2016
|
||||
# W504 line break after binary operator
|
||||
# reason: no agreement on this being universally
|
||||
# preferable for our code. Disabled to keep checking
|
||||
# tools from getting in our way with regards to this.
|
||||
#
|
||||
show-source = True
|
||||
ignore = E251
|
||||
ignore = E251,W503,W504
|
||||
enable-extensions=H106,H203,H204,H205
|
||||
builtins = _
|
||||
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build
|
||||
|
|
Loading…
Reference in New Issue