You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While preparing a code snippet for #947 I encountered another bug
test.py
#: does not raise E265
a = print #: neither raises E265
#raises
=>
❯ pycodestyle test.py
test.py:5:1: E265 block comment should start with '# '
test.py:5:8: W292 no newline at end of file
test.py:5:8: W292 no newline at end of file
test.py:5:8: W292 no newline at end of file
or minimal
#a
=>
❯ pycodestyle test.py
test.py:1:1: E265 block comment should start with '# '
test.py:1:3: W292 no newline at end of file
test.py:1:3: W292 no newline at end of file
test.py:1:3: W292 no newline at end of file
Activity
asottile commentedon Jun 30, 2020
interesting, this appears to be due to an edgecase in the tokenizer with comments: