Fix remaining pylint/flake8 issues
This commit is contained in:
parent
1d18e808b1
commit
984dd1ba8c
@ -155,10 +155,10 @@ 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))
|
||||||
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user