Skip to content

Commit

Permalink
fix: add_rule.py for --linter ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
not-my-profile authored and charliermarsh committed Jan 22, 2023
1 parent 4758ee6 commit 1beedf2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/add_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main(*, plugin: str, url: str, prefix_code: str) -> None:
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")

Expand Down
2 changes: 1 addition & 1 deletion src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/violations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5051,7 +5051,7 @@ impl Violation for ImplicitNamespacePackage {
}
}

// Ruff
// ruff

define_violation!(
pub struct AmbiguousUnicodeCharacterString {
Expand Down

0 comments on commit 1beedf2

Please sign in to comment.