fix: fix 'too-many-locals' for pylint
This commit is contained in:
parent
95aeb87899
commit
1dd184622f
4 changed files with 4 additions and 5 deletions
|
@ -8,5 +8,4 @@ disable=fixme,
|
||||||
duplicate-code,
|
duplicate-code,
|
||||||
keyword-arg-before-vararg,
|
keyword-arg-before-vararg,
|
||||||
no-member,
|
no-member,
|
||||||
too-many-locals,
|
|
||||||
too-many-nested-blocks,
|
too-many-nested-blocks,
|
||||||
|
|
|
@ -268,7 +268,7 @@ class Form: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
||||||
Note that in all other cases, this attribute may not exist.
|
Note that in all other cases, this attribute may not exist.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
|
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments,too-many-locals
|
||||||
self,
|
self,
|
||||||
request,
|
request,
|
||||||
fields=None,
|
fields=None,
|
||||||
|
@ -983,7 +983,7 @@ class Form: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
||||||
output = render(template, context)
|
output = render(template, context)
|
||||||
return HTML.literal(output)
|
return HTML.literal(output)
|
||||||
|
|
||||||
def render_vue_field( # pylint: disable=unused-argument
|
def render_vue_field( # pylint: disable=unused-argument,too-many-locals
|
||||||
self,
|
self,
|
||||||
fieldname,
|
fieldname,
|
||||||
readonly=None,
|
readonly=None,
|
||||||
|
|
|
@ -372,7 +372,7 @@ class Grid: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
||||||
See also :meth:`add_tool()` and :meth:`set_tools()`.
|
See also :meth:`add_tool()` and :meth:`set_tools()`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
|
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments,too-many-locals
|
||||||
self,
|
self,
|
||||||
request,
|
request,
|
||||||
vue_tagname="wutta-grid",
|
vue_tagname="wutta-grid",
|
||||||
|
|
|
@ -135,7 +135,7 @@ class CommonView(View):
|
||||||
""" """
|
""" """
|
||||||
self.app.send_email("feedback", context)
|
self.app.send_email("feedback", context)
|
||||||
|
|
||||||
def setup(self, session=None):
|
def setup(self, session=None): # pylint: disable=too-many-locals
|
||||||
"""
|
"""
|
||||||
View for first-time app setup, to create admin user.
|
View for first-time app setup, to create admin user.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue