mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
[pylint] - implement non-ascii-name
(C2401
) (#8038)
## Summary Adds [`non-ascii-name` / `C2401`](https://pylint.pycqa.org/en/latest/user_guide/messages/convention/non-ascii-name.html) See #970 ## Test Plan `cargo test` and manually
This commit is contained in:
parent
7a5f98835a
commit
90ebea86a4
10 changed files with 241 additions and 4 deletions
|
@ -211,6 +211,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
|
|||
(Pylint, "C0205") => (RuleGroup::Stable, rules::pylint::rules::SingleStringSlots),
|
||||
(Pylint, "C0208") => (RuleGroup::Stable, rules::pylint::rules::IterationOverSet),
|
||||
(Pylint, "C0414") => (RuleGroup::Stable, rules::pylint::rules::UselessImportAlias),
|
||||
(Pylint, "C2401") => (RuleGroup::Preview, rules::pylint::rules::NonAsciiName),
|
||||
(Pylint, "C2403") => (RuleGroup::Preview, rules::pylint::rules::NonAsciiImportName),
|
||||
#[allow(deprecated)]
|
||||
(Pylint, "C1901") => (RuleGroup::Nursery, rules::pylint::rules::CompareToEmptyString),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue