Disable too-many-* (#4107)
* Disable too-many-* and too-few-public-methods * Remove globally disabled pylint warnings
This commit is contained in:
parent
b910a9917d
commit
be272ac64a
298 changed files with 271 additions and 570 deletions
|
@ -56,7 +56,6 @@ def color(the_color, *args, reset=None):
|
|||
raise ValueError("Invalid color {} in {}".format(str(k), the_color))
|
||||
|
||||
|
||||
# pylint: disable=too-many-locals, too-many-branches
|
||||
def run(script_args: List) -> int:
|
||||
"""Handle ensure config commandline script."""
|
||||
parser = argparse.ArgumentParser(
|
||||
|
@ -160,12 +159,14 @@ def check(config_path):
|
|||
'secret_cache': OrderedDict(),
|
||||
}
|
||||
|
||||
def mock_load(filename): # pylint: disable=unused-variable
|
||||
# pylint: disable=unused-variable
|
||||
def mock_load(filename):
|
||||
"""Mock hass.util.load_yaml to save config files."""
|
||||
res['yaml_files'][filename] = True
|
||||
return MOCKS['load'][1](filename)
|
||||
|
||||
def mock_get(comp_name): # pylint: disable=unused-variable
|
||||
# pylint: disable=unused-variable
|
||||
def mock_get(comp_name):
|
||||
"""Mock hass.loader.get_component to replace setup & setup_platform."""
|
||||
def mock_setup(*kwargs):
|
||||
"""Mock setup, only record the component name & config."""
|
||||
|
@ -196,7 +197,8 @@ def check(config_path):
|
|||
|
||||
return module
|
||||
|
||||
def mock_secrets(ldr, node): # pylint: disable=unused-variable
|
||||
# pylint: disable=unused-variable
|
||||
def mock_secrets(ldr, node):
|
||||
"""Mock _get_secrets."""
|
||||
try:
|
||||
val = MOCKS['secrets'][1](ldr, node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue