Fix remaining pylint/flake8 issues
This commit is contained in:
parent
1d18e808b1
commit
984dd1ba8c
@ -155,13 +155,13 @@ def _get_setting_quickref():
|
|||||||
|
|
||||||
def _get_configtypes():
|
def _get_configtypes():
|
||||||
"""Get configtypes classes to document."""
|
"""Get configtypes classes to document."""
|
||||||
predicate = lambda e: (inspect.isclass(e) and
|
predicate = lambda e: (
|
||||||
e not in [configtypes.BaseType,
|
inspect.isclass(e) and
|
||||||
configtypes.MappingType,
|
# pylint: disable=protected-access
|
||||||
# pylint: disable=protected-access
|
e not in [configtypes.BaseType, configtypes.MappingType,
|
||||||
configtypes._Numeric] and
|
configtypes._Numeric] and
|
||||||
# pylint: enable=protected-access
|
# pylint: enable=protected-access
|
||||||
issubclass(e, configtypes.BaseType))
|
issubclass(e, configtypes.BaseType))
|
||||||
yield from inspect.getmembers(configtypes, predicate)
|
yield from inspect.getmembers(configtypes, predicate)
|
||||||
|
|
||||||
|
|
||||||
@ -504,7 +504,6 @@ def regenerate_manpage(filename):
|
|||||||
# positionals, optionals and user-defined groups
|
# positionals, optionals and user-defined groups
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
for group in parser._action_groups:
|
for group in parser._action_groups:
|
||||||
# pylint: enable=protected-access
|
|
||||||
groupdata = []
|
groupdata = []
|
||||||
groupdata.append('=== {}'.format(group.title))
|
groupdata.append('=== {}'.format(group.title))
|
||||||
if group.description is not None:
|
if group.description is not None:
|
||||||
@ -514,6 +513,7 @@ def regenerate_manpage(filename):
|
|||||||
if action_data is not None:
|
if action_data is not None:
|
||||||
groupdata.append(action_data)
|
groupdata.append(action_data)
|
||||||
groups.append('\n'.join(groupdata))
|
groups.append('\n'.join(groupdata))
|
||||||
|
# pylint: enable=protected-access
|
||||||
options = '\n'.join(groups)
|
options = '\n'.join(groups)
|
||||||
# epilog
|
# epilog
|
||||||
if parser.epilog is not None:
|
if parser.epilog is not None:
|
||||||
|
@ -109,7 +109,7 @@ class TestYaml:
|
|||||||
# WORKAROUND for https://github.com/PyCQA/pylint/issues/574
|
# WORKAROUND for https://github.com/PyCQA/pylint/issues/574
|
||||||
# pylint: disable=superfluous-parens
|
# pylint: disable=superfluous-parens
|
||||||
if 'magenta' in (old_config or ''):
|
if 'magenta' in (old_config or ''):
|
||||||
# pylint: enable=superfluous-parens
|
# pylint: enable=superfluous-parens
|
||||||
assert ' colors.hints.fg: magenta' in lines
|
assert ' colors.hints.fg: magenta' in lines
|
||||||
if insert:
|
if insert:
|
||||||
assert ' tabs.show: never' in lines
|
assert ' tabs.show: never' in lines
|
||||||
|
Loading…
Reference in New Issue
Block a user