pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

W292: error message gets shown three times

Open jugmac00 opened this issue 5 years ago • 1 comments

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
pycodestyle --version
2.6.0

jugmac00 avatar Jun 30 '20 06:06 jugmac00