astral-sh/ruff

`N999` (`invalid-module-name`) mixes correctness and stylistic recommendations

開放

#12,475 建立於 2024年7月23日

 (11 則留言) (2 個反應) (0 位負責人)Rust (2,088 個分叉)batch import
help wantedrule

倉庫指標

星標
 (47,527 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Not only does rule N999 check that the PEP8 convention is respected, but also checks that the module name is syntactically correct. The latter is not part of PEP8. This is a problem for me currently working on "old non linted" code. I have to ignore this rule because of some modules whose names are syntactically correct but sometimes with capital letters. I think a E rule is missing that would only include the syntax checking of N999. (If I were you I would also remove that part from N999 for consistency)

貢獻者指南