pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

W504: Relax when operator is only thing on a line

Open bdarnell opened this issue 7 years ago • 2 comments

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.

bdarnell avatar Nov 02 '18 16:11 bdarnell