Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the position pointed out by W504 #751

Merged
merged 2 commits into from
May 19, 2018

Conversation

hhatto
Copy link
Contributor

@hhatto hhatto commented Apr 14, 2018

test environment:

$ python -V
Python 3.6.5
$ pycodestyle --version
2.4.0
$ pycodestyle --select=W --show-source target.py

input:

var = (1 &     # comment
       ~2)
(width == 0 and
 height == 0)

before:

target.py:1:8: W504 line break after binary operator
var = (1 &     # comment
       ^
target.py:3:2: W504 line break after binary operator
(width == 0 and
 ^

after:

target.py:1:10: W504 line break after binary operator
var = (1 &     # comment
         ^
target.py:3:13: W504 line break after binary operator
(width == 0 and
            ^

Thanks

@sigmavirus24 sigmavirus24 merged commit 0364618 into PyCQA:master May 19, 2018
@sigmavirus24
Copy link
Member

Sorry for the delay on this!

@hhatto hhatto deleted the w504-position branch May 24, 2018 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants