pylint-dev/pylint

Warn if module dunders are below imports

開放

#5,471 建立於 2021年12月4日

 (9 則留言) (1 個反應) (0 位負責人)Python (1,059 個分叉)batch import
Enhancement ✨Good first issueHacktoberfestHelp wanted 🙏Needs PRNeeds investigation 🔬

倉庫指標

星標
 (4,978 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南