From d561731ba4a9d78556ec33e35b76b420ee8092de Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:31:39 -0400 Subject: [PATCH] Fix max-positional-arguments comments in example config files (#9914) --- examples/pylintrc | 5 +++-- examples/pyproject.toml | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/pylintrc b/examples/pylintrc index 645bf7f441..a26254c199 100644 --- a/examples/pylintrc +++ b/examples/pylintrc @@ -307,6 +307,9 @@ max-locals=15 # Maximum number of parents for a class (see R0901). max-parents=7 +# Maximum number of positional arguments for function / method. +max-positional-arguments=5 + # Maximum number of public methods for a class (see R0904). max-public-methods=20 @@ -319,8 +322,6 @@ max-statements=50 # Minimum number of public methods for a class (see R0903). min-public-methods=2 -# Minimum number of public methods for a class (see R0903). -max-positional-arguments=5 [EXCEPTIONS] diff --git a/examples/pyproject.toml b/examples/pyproject.toml index bae7233081..a647cbb577 100644 --- a/examples/pyproject.toml +++ b/examples/pyproject.toml @@ -269,6 +269,9 @@ max-locals = 15 # Maximum number of parents for a class (see R0901). max-parents = 7 +# Maximum number of positional arguments for function / method. +max-positional-arguments = 5 + # Maximum number of public methods for a class (see R0904). max-public-methods = 20 @@ -281,9 +284,6 @@ max-statements = 50 # Minimum number of public methods for a class (see R0903). min-public-methods = 2 -# Maximum number of positional arguments (see R0917). -max-positional-arguments = 5 - [tool.pylint.exceptions] # Exceptions that will emit a warning when caught. overgeneral-exceptions = ["builtins.BaseException", "builtins.Exception"]