Skip to content

Commit 278de0f

Browse files
Reserve 'too-many-positional' / 'R0917' for later use (#9278)
See astral-sh/ruff#8946 Refs #9099
1 parent b1d8b4c commit 278de0f

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Reserved message name, not yet implemented.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- `Ruff discussion <https://github.com/astral-sh/ruff/issues/8946>`_
2+
- `Pylint issue <https://github.com/pylint-dev/pylint/issues/9099>`_

doc/user_guide/checkers/features.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ Design checker Messages
431431
simpler (and so easier to use) class.
432432
:too-many-locals (R0914): *Too many local variables (%s/%s)*
433433
Used when a function or method has too many local variables.
434+
:too-many-positional (R0917): *Too many positional arguments in a function call.*
435+
Will be implemented in https://github.com/pylint-
436+
dev/pylint/issues/9099,msgid/symbol pair reserved for compatibility with
437+
ruff, see https://github.com/astral-sh/ruff/issues/8946.
434438
:too-many-public-methods (R0904): *Too many public methods (%s/%s)*
435439
Used when class has too many public methods, try to reduce this to get a
436440
simpler (and so easier to use) class.

doc/user_guide/messages/messages_overview.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ All messages in the refactor category:
532532
refactor/too-many-instance-attributes
533533
refactor/too-many-locals
534534
refactor/too-many-nested-blocks
535+
refactor/too-many-positional
535536
refactor/too-many-public-methods
536537
refactor/too-many-return-statements
537538
refactor/too-many-statements

pylint/checkers/design_analysis.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@
8181
"too-many-boolean-expressions",
8282
"Used when an if statement contains too many boolean expressions.",
8383
),
84+
"R0917": (
85+
"Too many positional arguments in a function call.",
86+
"too-many-positional",
87+
"Will be implemented in https://github.com/pylint-dev/pylint/issues/9099,"
88+
"msgid/symbol pair reserved for compatibility with ruff, "
89+
"see https://github.com/astral-sh/ruff/issues/8946.",
90+
),
8491
}
8592
SPECIAL_OBJ = re.compile("^_{2}[a-z]+_{2}$")
8693
DATACLASSES_DECORATORS = frozenset({"dataclass", "attrs"})

0 commit comments

Comments
 (0)