From 9007ab7048c29b2f30a73fa40f6c344d591950a6 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 9 May 2018 09:01:54 -0500 Subject: [PATCH] Add comment about W503 being skipped It's on purpose and we do not want to 'fix' occurances. If anything, a rule checking the opposite of W503 would be preferrable. Change-Id: I246b23e7e1ead1682167f3bf076ce563697217e6 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index d8e42f659..27bed5ce3 100644 --- a/tox.ini +++ b/tox.ini @@ -95,6 +95,9 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen # H306 Is about alphabetical imports - there's a lot to fix. # H4 Are about docstrings and there's just a huge pile of pre-existing issues. # D* Came from sdk, unknown why they're skipped. +# W503 Is supposed to be off by default but in the latest pycodestyle isn't. +# Also, both openstacksdk and Donald Knuth disagree with the rule. Line +# breaks should occur before the binary operator for readability. ignore = H103,H306,H4,D100,D101,D102,D103,D104,D105,D200,D202,D204,D205,D211,D301,D400,D401,W503 show-source = True exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build