PyCQA / pycodestyle

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

E403: add report for module-level dunder names that are misplaced. #1237

Closed jayaddison closed 5 months ago

jayaddison commented 5 months ago

According to the PEP8 Style Guide, dunder names at the module level should be placed before any import statements, with the exception of any __future__ module imports.

There should be a single line of spacing before any module-level dunder names, and a single line of spacing after them; they may be grouped.

Related:

asottile commented 5 months ago

I don't think this should be added. this is a bad suggestion from pep8