pylint: Turn off some more too-many-* stuff globally
Humans are just better at judging what's okay here than a machine.
This commit is contained in:
parent
2becc17099
commit
0b86b302a2
@ -41,7 +41,10 @@ disable=no-self-use,
|
||||
unsupported-membership-test,
|
||||
unsupported-assignment-operation,
|
||||
unsubscriptable-object,
|
||||
too-many-boolean-expressions
|
||||
too-many-boolean-expressions,
|
||||
too-many-locals,
|
||||
too-many-branches,
|
||||
too-many-statements
|
||||
|
||||
[BASIC]
|
||||
function-rgx=[a-z_][a-z0-9_]{2,50}$
|
||||
|
@ -417,7 +417,6 @@ def _init_modules(args, crash_handler):
|
||||
args: The argparse namespace.
|
||||
crash_handler: The CrashHandler instance.
|
||||
"""
|
||||
# pylint: disable=too-many-statements
|
||||
log.init.debug("Initializing save manager...")
|
||||
save_manager = savemanager.SaveManager(qApp)
|
||||
objreg.register('save-manager', save_manager)
|
||||
|
@ -81,8 +81,6 @@ class Command:
|
||||
deprecated=False, no_cmd_split=False,
|
||||
star_args_optional=False, scope='global', backend=None,
|
||||
no_replace_variables=False):
|
||||
# I really don't know how to solve this in a better way, I tried.
|
||||
# pylint: disable=too-many-locals
|
||||
if modes is not None and not_modes is not None:
|
||||
raise ValueError("Only modes or not_modes can be given!")
|
||||
if modes is not None:
|
||||
|
@ -57,7 +57,6 @@ class ShellLexer:
|
||||
|
||||
def __iter__(self): # pragma: no mccabe
|
||||
"""Read a raw token from the input stream."""
|
||||
# pylint: disable=too-many-branches,too-many-statements
|
||||
self.reset()
|
||||
for nextchar in self.string:
|
||||
if self.state == ' ':
|
||||
|
@ -117,7 +117,6 @@ class AsciiDoc:
|
||||
|
||||
def _build_website_file(self, root, filename):
|
||||
"""Build a single website file."""
|
||||
# pylint: disable=too-many-locals,too-many-statements
|
||||
src = os.path.join(root, filename)
|
||||
src_basename = os.path.basename(src)
|
||||
parts = [self._args.website[0]]
|
||||
|
@ -53,7 +53,6 @@ def get_webelem(geometry=None, frame=None, *, null=False, style=None,
|
||||
evaluateJavaScript.
|
||||
zoom_text_only: Whether zoom.text_only is set in the config
|
||||
"""
|
||||
# pylint: disable=too-many-locals,too-many-branches
|
||||
elem = mock.Mock()
|
||||
elem.isNull.return_value = null
|
||||
elem.geometry.return_value = geometry
|
||||
|
@ -111,7 +111,6 @@ class TestEarlyInit:
|
||||
def test_autoconfig_yml(self, init_patch, config_tmpdir, caplog, args,
|
||||
load_autoconfig, config_py, invalid_yaml):
|
||||
"""Test interaction between config.py and autoconfig.yml."""
|
||||
# pylint: disable=too-many-locals,too-many-branches
|
||||
# Prepare files
|
||||
autoconfig_file = config_tmpdir / 'autoconfig.yml'
|
||||
config_py_file = config_tmpdir / 'config.py'
|
||||
|
Loading…
Reference in New Issue
Block a user