pylint: enable some too-many-xxx checks globally (with a few overrides)
This commit is contained in:
parent
e190a2a27f
commit
1627285621
|
@ -38,16 +38,11 @@ disable=
|
|||
stop-iteration-return,
|
||||
super-init-not-called,
|
||||
superfluous-parens,
|
||||
too-many-ancestors,
|
||||
too-many-arguments,
|
||||
too-many-boolean-expressions,
|
||||
too-many-branches,
|
||||
too-many-function-args,
|
||||
too-many-instance-attributes,
|
||||
too-many-lines,
|
||||
too-many-locals,
|
||||
too-many-nested-blocks,
|
||||
too-many-public-methods,
|
||||
too-many-return-statements,
|
||||
too-many-statements,
|
||||
undefined-loop-variable,
|
||||
|
|
|
@ -1755,6 +1755,7 @@ class MapOptionsMixin:
|
|||
form.get_widget('min_zoom').set_error(
|
||||
_('Minimal zoom level cannot be greater than maximal zoom level.')
|
||||
)
|
||||
# noqa pylint: disable=too-many-boolean-expressions
|
||||
if (initial_zoom and min_zoom and int(initial_zoom) < int(min_zoom)) or (
|
||||
(initial_zoom and max_zoom and int(initial_zoom) > int(max_zoom))
|
||||
):
|
||||
|
|
|
@ -225,6 +225,7 @@ class Evolution:
|
|||
|
||||
|
||||
class FormData(StorableObject):
|
||||
# noqa pylint: disable=too-many-public-methods
|
||||
_names = 'XX'
|
||||
_hashed_indexes = ['user_id', 'status', 'workflow_roles', 'concerned_roles', 'actions_roles']
|
||||
|
||||
|
|
|
@ -78,6 +78,7 @@ def lax_int(s):
|
|||
|
||||
|
||||
class FormDef(StorableObject):
|
||||
# noqa pylint: disable=too-many-public-methods
|
||||
_names = 'formdefs'
|
||||
_indexes = ['url_name']
|
||||
_hashed_indexes = ['backoffice_submission_roles']
|
||||
|
|
|
@ -43,6 +43,7 @@ class FormDefUI:
|
|||
criterias=None,
|
||||
include_checkboxes=False,
|
||||
):
|
||||
# noqa pylint: disable=too-many-arguments
|
||||
|
||||
using_postgresql = get_publisher().is_using_postgresql()
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ class LoggedError:
|
|||
expression_type=None,
|
||||
exception=None,
|
||||
):
|
||||
# noqa pylint: disable=too-many-arguments
|
||||
error = cls()
|
||||
error.summary = str(error_summary)
|
||||
error.traceback = plain_error_msg
|
||||
|
|
|
@ -169,6 +169,7 @@ def email(
|
|||
extra_headers=None,
|
||||
ignore_mail_redirection=False,
|
||||
):
|
||||
# noqa pylint: disable=too-many-arguments
|
||||
|
||||
if not get_request():
|
||||
# we are not processing a request, no sense delaying the handling
|
||||
|
|
|
@ -69,6 +69,7 @@ class Tenant:
|
|||
|
||||
|
||||
class QommonPublisher(Publisher):
|
||||
# noqa pylint: disable=too-many-public-methods
|
||||
APP_NAME = None
|
||||
APP_DIR = None
|
||||
DATA_DIR = None
|
||||
|
|
|
@ -188,6 +188,7 @@ class Contains(Criteria):
|
|||
op = operator.contains
|
||||
|
||||
def build_lambda(self):
|
||||
# noqa pylint: disable=too-many-function-args
|
||||
return lambda x: self.op(self.value, getattr(x, self.attribute, ''))
|
||||
|
||||
|
||||
|
@ -195,6 +196,7 @@ class NotContains(Criteria):
|
|||
op = operator.contains
|
||||
|
||||
def build_lambda(self):
|
||||
# noqa pylint: disable=too-many-function-args
|
||||
return lambda x: not self.op(self.value, getattr(x, self.attribute, ''))
|
||||
|
||||
|
||||
|
|
|
@ -75,6 +75,7 @@ def call_webservice(
|
|||
handle_connection_errors=True,
|
||||
**kwargs,
|
||||
):
|
||||
# noqa pylint: disable=too-many-arguments
|
||||
|
||||
url = url.strip()
|
||||
if Template.is_template_string(url):
|
||||
|
|
Loading…
Reference in New Issue