pylint-dev/pylint

Warn if module dunders are below imports

Open

#5.471 aberto em 4 de dez. de 2021

Ver no GitHub
 (9 comments) (1 reaction) (0 assignees)Python (1.059 forks)batch import
Enhancement ✨Good first issueHacktoberfestHelp wanted 🙏Needs PRNeeds investigation 🔬

Métricas do repositório

Stars
 (4.978 stars)
Métricas de merge de PR
 (Mesclagem média 58d 21h) (63 fundiu PRs em 30d)

Description

Current problem

The PEP-8 guidelines state that module level dunders are supposed to be above imports. This is something pylint does not warn about if the code does not follow it.

Desired solution

Pylint should raise a warning if the above is not followed.

Additional context

Similar to #965, but also add a warning for it

Guia do colaborador