pylint-dev/pylint

Warn if module dunders are below imports

Open

#5,471 创建于 2021年12月4日

在 GitHub 查看
 (9 评论) (1 反应) (0 负责人)Python (4,978 star) (1,059 fork)batch import
Enhancement ✨Good first issueHacktoberfestHelp wanted 🙏Needs PRNeeds investigation 🔬

描述

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

贡献者指南