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

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

Conversation

jayaddison
Copy link

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
Copy link
Member

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

@asottile asottile closed this Mar 23, 2024
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 this pull request may close these issues.

Check if dunder variables are defined *after* imports
2 participants