How to use the setoptconf.CommandLineSource function in setoptconf

To help you get started, we’ve selected a few setoptconf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PyCQA / prospector / prospector / config / configuration.py View on Github external
' deprecated and will be removed in a future update. Please'
                    ' use the positional PATH argument instead.'
        }
    }

    positional = (
        ('checkpath', {
            'help': 'The path to a Python project to inspect. Defaults to PWD'
                    '  if not specified. If multiple paths are specified,'
                    '  they must all be files (no directories).',
            'metavar': 'PATH',
            'nargs': '*',
        }),
    )

    return soc.CommandLineSource(
        options=options,
        version=__version__,
        parser_options=parser_options,
        positional=positional,
    )