Skip to content

Commit

Permalink
Fix max-positional-arguments comments in example config files (#9914)
Browse files Browse the repository at this point in the history
  • Loading branch information
correctmost authored Sep 5, 2024
1 parent 0261637 commit d561731
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions examples/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]

Expand Down
6 changes: 3 additions & 3 deletions examples/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"]
Expand Down

0 comments on commit d561731

Please sign in to comment.