Skip to content

Commit d561731

Browse files
authored
Fix max-positional-arguments comments in example config files (#9914)
1 parent 0261637 commit d561731

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

examples/pylintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ max-locals=15
307307
# Maximum number of parents for a class (see R0901).
308308
max-parents=7
309309

310+
# Maximum number of positional arguments for function / method.
311+
max-positional-arguments=5
312+
310313
# Maximum number of public methods for a class (see R0904).
311314
max-public-methods=20
312315

@@ -319,8 +322,6 @@ max-statements=50
319322
# Minimum number of public methods for a class (see R0903).
320323
min-public-methods=2
321324

322-
# Minimum number of public methods for a class (see R0903).
323-
max-positional-arguments=5
324325

325326
[EXCEPTIONS]
326327

examples/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ max-locals = 15
269269
# Maximum number of parents for a class (see R0901).
270270
max-parents = 7
271271

272+
# Maximum number of positional arguments for function / method.
273+
max-positional-arguments = 5
274+
272275
# Maximum number of public methods for a class (see R0904).
273276
max-public-methods = 20
274277

@@ -281,9 +284,6 @@ max-statements = 50
281284
# Minimum number of public methods for a class (see R0903).
282285
min-public-methods = 2
283286

284-
# Maximum number of positional arguments (see R0917).
285-
max-positional-arguments = 5
286-
287287
[tool.pylint.exceptions]
288288
# Exceptions that will emit a warning when caught.
289289
overgeneral-exceptions = ["builtins.BaseException", "builtins.Exception"]

0 commit comments

Comments
 (0)