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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user