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:
@@ -5,5 +5,17 @@ disable=
|
||||
C0115, # missing-class-docstring
|
||||
C0116, # missing-function-docstring
|
||||
C0209, # consider-using-f-string
|
||||
C0302, # too-many-lines
|
||||
C0415, # import-outside-toplevel
|
||||
R0801, # duplicate-code
|
||||
R0901, # too-many-ancestors
|
||||
R0902, # too-many-instance-attributes
|
||||
R0903, # too-few-public-methods
|
||||
R0904, # too-many-public-methods
|
||||
R0911, # too-many-return-statements
|
||||
R0912, # too-many-branches
|
||||
R0913, # too-many-arguments
|
||||
R0914, # too-many-locals
|
||||
R0915, # too-many-statements
|
||||
R0916, # too-many-boolean-expressions
|
||||
R0917, # too-many-positional-arguments
|
||||
|
||||
@@ -60,8 +60,6 @@ def do_work(named_proc, resolver, rndc_cmd, kill_method, n_workers, n_queries):
|
||||
:param n_queries: Total number of queries to send
|
||||
:type n_queries: int
|
||||
"""
|
||||
# pylint: disable-msg=too-many-arguments
|
||||
# pylint: disable-msg=too-many-locals
|
||||
|
||||
# helper function, args must be a list or tuple with arguments to rndc.
|
||||
def launch_rndc(args):
|
||||
|
||||
@@ -34,8 +34,6 @@ import dns.rrset
|
||||
|
||||
|
||||
class CraftedTKEYQuery:
|
||||
# pylint: disable=too-few-public-methods
|
||||
|
||||
"""
|
||||
A class for preparing crafted TKEY queries
|
||||
"""
|
||||
@@ -80,8 +78,6 @@ class CraftedTKEYQuery:
|
||||
|
||||
|
||||
class ASN1Encoder:
|
||||
# pylint: disable=too-few-public-methods
|
||||
|
||||
"""
|
||||
A custom ASN1 encoder which allows preparing malformed GSSAPI tokens
|
||||
"""
|
||||
|
||||
+1
-1
@@ -22,7 +22,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
|
||||
|
||||
@@ -23,9 +23,6 @@ from hashlib import sha256
|
||||
class State:
|
||||
"""Class that holds state of the TSAN parser."""
|
||||
|
||||
# pylint: disable=too-many-instance-attributes
|
||||
# pylint: disable=too-few-public-methods
|
||||
|
||||
inside = False
|
||||
block = ""
|
||||
last_line = None
|
||||
|
||||
Reference in New Issue
Block a user