pylint: enable some too-many-xxx checks globally (with a few overrides)
gitea-wip/wcs/pipeline/head Build started... Details
gitea/wcs/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2021-07-03 15:50:16 +02:00
parent e190a2a27f
commit 1627285621
10 changed files with 10 additions and 5 deletions

View File

@ -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,

View File

@ -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))
):

View File

@ -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']

View File

@ -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']

View File

@ -43,6 +43,7 @@ class FormDefUI:
criterias=None,
include_checkboxes=False,
):
# noqa pylint: disable=too-many-arguments
using_postgresql = get_publisher().is_using_postgresql()

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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, ''))

View File

@ -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):