mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:26 +00:00
fix: add_rule.py for --linter ruff
This commit is contained in:
parent
4758ee6ac4
commit
1beedf20f9
3 changed files with 3 additions and 3 deletions
|
@ -80,7 +80,7 @@ mod tests {
|
|||
for line in content.splitlines():
|
||||
indent = get_indent(line)
|
||||
|
||||
if line.strip() == "// Ruff":
|
||||
if line.strip() == "// ruff":
|
||||
fp.write(f"{indent}// {plugin}")
|
||||
fp.write("\n")
|
||||
|
||||
|
|
|
@ -429,7 +429,7 @@ ruff_macros::define_rule_mapping!(
|
|||
// tryceratops
|
||||
TRY004 => rules::tryceratops::rules::PreferTypeError,
|
||||
TRY300 => rules::tryceratops::rules::TryConsiderElse,
|
||||
// Ruff
|
||||
// ruff
|
||||
RUF001 => violations::AmbiguousUnicodeCharacterString,
|
||||
RUF002 => violations::AmbiguousUnicodeCharacterDocstring,
|
||||
RUF003 => violations::AmbiguousUnicodeCharacterComment,
|
||||
|
|
|
@ -5051,7 +5051,7 @@ impl Violation for ImplicitNamespacePackage {
|
|||
}
|
||||
}
|
||||
|
||||
// Ruff
|
||||
// ruff
|
||||
|
||||
define_violation!(
|
||||
pub struct AmbiguousUnicodeCharacterString {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue