PyCQA / pycodestyle

Simple Python style checker in one Python file
https://pycodestyle.pycqa.org
Other
5.01k stars 755 forks source link

False-positive E704 with single-line stubs (black 2024 style) #1227

Closed bersbersbers closed 6 months ago

bersbersbers commented 6 months ago

On Windows:

>example.py echo def f(): ...&& black . && more example.py && pycodestyle example.py

yields

All done! ✨ 🍰 ✨
47 files left unchanged.
def f(): ...
example.py:1:1: E704 multiple statements on one line (def)
bersbersbers commented 6 months ago

(Duplicate of #1036, I guess)