Skip to content

Commit

Permalink
homogenize PLR0914 message to match other PLR 09XX rules and pylint m…
Browse files Browse the repository at this point in the history
…essage (#9399)
  • Loading branch information
mikaelarguedas authored Jan 5, 2024
1 parent 6bf6521 commit 59078c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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})")
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 59078c5

Please sign in to comment.