Disable too-many/too-few pylint checks

Enforcing pylint standards and default for our test code seems
counter-productive. Since most of the newly added code are tests or is
test-related, encountering these checks rarely make us refactor the code
in other ways and we just disable these checks individually. Code that
is too complex or convoluted will be pointed out in reviews anyways.

(cherry picked from commit 7639c58c48)
This commit is contained in:
Nicki Křížek
2024-10-14 14:44:06 +02:00
parent 68ac0194ee
commit 9ca6fcc4d5
11 changed files with 16 additions and 21 deletions

View File

@@ -52,7 +52,6 @@ def split_csv(argument, required):
return outlist
# pylint: disable=too-many-statements
def domain_factory(domainname, domainlabel, todolist, grammar):
"""
Return parametrized Sphinx domain object.
@@ -318,7 +317,6 @@ def domain_factory(domainname, domainlabel, todolist, grammar):
]
)
# pylint: disable=too-many-arguments
def resolve_xref(self, env, fromdocname, builder, typ, target, node, contnode):
"""
Sphinx API:

View File

@@ -26,7 +26,7 @@ from sphinx import addnodes
try:
from sphinx.util.docutils import ReferenceRole
except ImportError:
# pylint: disable=too-few-public-methods
class ReferenceRole(roles.GenericRole):
"""
The ReferenceRole class (used as a base class by GitLabRefRole