pycodestyle
pycodestyle copied to clipboard
W504: Relax when operator is only thing on a line
The python formatter black will occasionally decide to put a binary operator by itself on a line (example). This triggers the newly-added W504 warning. I believe that W504 (and W503, but that warning is already incompatible with black) should be relaxed to permit a newline after binary operators if that operator is the only thing on the line.