diff --git a/crates/ruff_linter/src/rules/pylint/rules/too_many_locals.rs b/crates/ruff_linter/src/rules/pylint/rules/too_many_locals.rs index e2137b637bf52..ffdd7e34d283a 100644 --- a/crates/ruff_linter/src/rules/pylint/rules/too_many_locals.rs +++ b/crates/ruff_linter/src/rules/pylint/rules/too_many_locals.rs @@ -32,7 +32,7 @@ impl Violation for TooManyLocals { current_amount, max_amount, } = self; - format!("Too many local variables: ({current_amount}/{max_amount})") + format!("Too many local variables ({current_amount}/{max_amount})") } } diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_locals.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_locals.snap index 5150eac445d4e..99a0f2a9602b6 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_locals.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_locals.snap @@ -1,7 +1,7 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs --- -too_many_locals.py:20:5: PLR0914 Too many local variables: (16/15) +too_many_locals.py:20:5: PLR0914 Too many local variables (16/15) | 20 | def func() -> None: # PLR0914 | ^^^^ PLR0914