Skip to content

Commit

Permalink
pylint: exclude rule: too-many-positional-arguments (code: R0917)
Browse files Browse the repository at this point in the history
New version of Pylint have the rule for checking of positional
arguments - complaining when more than 4 positional arguments exists.
We do not want to refactor the code to make it happy and the default
value cannot be set right now - that's planned for future Pylint
versions at this moment. So excluding this rule.

For more info:
  * https://pylint.readthedocs.io/en/latest/user_guide/messages/refactor/too-many-positional-arguments.html
  • Loading branch information
pirat89 committed Sep 27, 2024
1 parent 41e32e3 commit 88e13fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ disable=
consider-using-from-import,
use-list-literal,
use-dict-literal,
too-many-lines, # we do not want to take care about that one
too-many-positional-arguments, # we cannot set yet max-possitional-arguments unfortunately
# new for python3 version of pylint
useless-object-inheritance,
consider-using-set-comprehension, # pylint3 force to use comprehension in place we don't want (py2 doesnt have these options, for inline skip)
Expand All @@ -57,8 +59,7 @@ disable=
redundant-u-string-prefix, # still have py2 to support
logging-format-interpolation,
logging-not-lazy,
use-yield-from, # yield from cannot be used until we require python 3.3 or greater
too-many-lines # we do not want to take care about that one
use-yield-from # yield from cannot be used until we require python 3.3 or greater

[FORMAT]
# Maximum number of characters on a single line.
Expand Down

0 comments on commit 88e13fb

Please sign in to comment.