コード例 #1
0
ファイル: run.py プロジェクト: pahaz/prospector
def get_parser():
    """
    This is a helper method to return an argparse parser, to
    be used with the Sphinx argparse plugin for documentation.
    """
    manager = cfg.build_manager()
    source = cfg.build_command_line_source(prog='prospector', description=None)
    return source.build_parser(manager.settings, None)
コード例 #2
0
def get_parser():
    """
    This is a helper method to return an argparse parser, to
    be used with the Sphinx argparse plugin for documentation.
    """
    manager = cfg.build_manager()
    source = cfg.build_command_line_source(prog="prospector", description=None)
    return source.build_parser(manager.settings, None)
コード例 #3
0
ファイル: __init__.py プロジェクト: pikap3w/python_oct_2018
 def _configure_prospector(self):
     # first we will configure prospector as a whole
     mgr = cfg.build_manager()
     config = mgr.retrieve(*cfg.build_default_sources())
     return config, mgr.arguments
コード例 #4
0
ファイル: __init__.py プロジェクト: antoviaque/prospector
 def _configure_prospector(self):
     # first we will configure prospector as a whole
     mgr = cfg.build_manager()
     config = mgr.retrieve(*cfg.build_default_sources())
     return config, mgr.arguments