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

E261: ignores tab/space mix #582

Open
spaceone opened this issue Oct 26, 2016 · 4 comments · May be fixed by #1016
Open

E261: ignores tab/space mix #582

spaceone opened this issue Oct 26, 2016 · 4 comments · May be fixed by #1016

Comments

@spaceone
Copy link
Contributor

printf 'foo = "bar" \t# comment\n' | pep8 -

I expected the following output but got nothing:

stdin:1:12: E261 at least two spaces before inline comment
@spaceone
Copy link
Contributor Author

This causes hhatto/autopep8#256

@IanLee1521
Copy link
Member

Hmm, seems like it's currently reporting for "two whitespace characters" rather than "two spaces".

@spaceone -- FYI, you should be testing against the latest version of pycodestyle rather than pep8, see #466 for why the name changed.

@spaceone
Copy link
Contributor Author

spaceone commented Oct 31, 2016

Yes, i do use the lastest pycodestyle: I just aliased pep8=pycodestyle to type this faster in my shell.

@asottile asottile changed the title E261 ignores tab/space mix E261: ignores tab/space mix Jun 14, 2020
@spaceone
Copy link
Contributor Author

Still broken with pycodestyle 2.7.0

spaceone added a commit to spaceone/pycodestyle that referenced this issue Sep 16, 2021
@spaceone spaceone linked a pull request Sep 16, 2021 that will close this issue
spaceone added a commit to spaceone/pycodestyle that referenced this issue Sep 16, 2021
spaceone added a commit to spaceone/pycodestyle that referenced this issue Sep 16, 2021
spaceone added a commit to spaceone/pycodestyle that referenced this issue Oct 7, 2021
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 a pull request may close this issue.

2 participants