diff --git a/crates/ruff_linter/src/rules/pylint/rules/too_many_positional.rs b/crates/ruff_linter/src/rules/pylint/rules/too_many_positional.rs index bc424441c0b7d..c30331f88de44 100644 --- a/crates/ruff_linter/src/rules/pylint/rules/too_many_positional.rs +++ b/crates/ruff_linter/src/rules/pylint/rules/too_many_positional.rs @@ -51,7 +51,7 @@ impl Violation for TooManyPositional { #[derive_message_formats] fn message(&self) -> String { let TooManyPositional { c_pos, max_pos } = self; - format!("Too many positional arguments: ({c_pos}/{max_pos})") + format!("Too many positional arguments ({c_pos}/{max_pos})") } } diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0917_too_many_positional.py.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0917_too_many_positional.py.snap index 4578419f43545..8b5057680a211 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0917_too_many_positional.py.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0917_too_many_positional.py.snap @@ -1,21 +1,21 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs --- -too_many_positional.py:1:5: PLR0917 Too many positional arguments: (8/5) +too_many_positional.py:1:5: PLR0917 Too many positional arguments (8/5) | 1 | def f(x, y, z, t, u, v, w, r): # Too many positional arguments (8/3) | ^ PLR0917 2 | pass | -too_many_positional.py:21:5: PLR0917 Too many positional arguments: (6/5) +too_many_positional.py:21:5: PLR0917 Too many positional arguments (6/5) | 21 | def f(x, y, z, /, u, v, w): # Too many positional arguments (6/3) | ^ PLR0917 22 | pass | -too_many_positional.py:29:5: PLR0917 Too many positional arguments: (6/5) +too_many_positional.py:29:5: PLR0917 Too many positional arguments (6/5) | 29 | def f(x, y, z, a, b, c, *, u, v, w): # Too many positional arguments (6/3) | ^ PLR0917 diff --git a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_positional_args.snap b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_positional_args.snap index 98c964820770c..ae8e6bf796914 100644 --- a/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_positional_args.snap +++ b/crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_positional_args.snap @@ -1,7 +1,7 @@ --- source: crates/ruff_linter/src/rules/pylint/mod.rs --- -too_many_positional_params.py:3:5: PLR0917 Too many positional arguments: (7/4) +too_many_positional_params.py:3:5: PLR0917 Too many positional arguments (7/4) | 1 | # Too many positional arguments (7/4) for max_positional=4 2 | # OK for dummy_variable_rgx ~ "skip_.*" @@ -10,7 +10,7 @@ too_many_positional_params.py:3:5: PLR0917 Too many positional arguments: (7/4) 4 | pass | -too_many_positional_params.py:9:5: PLR0917 Too many positional arguments: (7/4) +too_many_positional_params.py:9:5: PLR0917 Too many positional arguments (7/4) | 7 | # Too many positional arguments (7/4) for max_args=4 8 | # Too many positional arguments (7/3) for dummy_variable_rgx ~ "skip_.*"