How to use the pycodestyle.process_options function in pycodestyle

To help you get started, we’ve selected a few pycodestyle 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 Parallels / githooks / hooks.d / pycheck / pycodestyle / testsuite / test_parser.py View on Github external
def _process_file(contents):
    with tempfile.NamedTemporaryFile(delete=False) as f:
        f.write(contents)

    options, args = pycodestyle.process_options(config_file=f.name)
    os.remove(f.name)

    return options, args
github PyCQA / pycodestyle / testsuite / test_parser.py View on Github external
def _process_file(contents):
    with tempfile.NamedTemporaryFile(delete=False) as f:
        f.write(contents)

    options, args = pycodestyle.process_options(config_file=f.name)
    os.remove(f.name)

    return options, args