@staticmethod
def run(path, code=None, params=None, **meta):
    'Check code with pycodestyle.\n\n        :return list: List of errors.\n        '
    parser = get_parser()
    for option in parser.option_list:
        if (option.dest and (option.dest in params)):
            value = params[option.dest]
            if isinstance(value, str):
                params[option.dest] = option.convert_value(option, value)
    for key in ['filename', 'exclude', 'select', 'ignore']:
        if ((key in params) and isinstance(params[key], str)):
            params[key] = _parse_multi_options(params[key])
    P8Style = StyleGuide(reporter=_PycodestyleReport, **params)
    buf = StringIO(code)
    return P8Style.input_file(path, lines=buf.readlines())
Check code with pycodestyle.

:return list: List of errors.
@staticmethod
def run(path, code=None, params=None, **meta):
    'Check code with pycodestyle.\n\n        :return list: List of errors.\n        '
    parser = get_parser()
    for option in parser.option_list:
        if (option.dest and (option.dest in params)):
            value = params[option.dest]
            if isinstance(value, str):
                params[option.dest] = option.convert_value(option, value)
    for key in ['filename', 'exclude', 'select', 'ignore']:
        if ((key in params) and isinstance(params[key], str)):
            params[key] = _parse_multi_options(params[key])
    P8Style = StyleGuide(reporter=_PycodestyleReport, **params)
    buf = StringIO(code)
    return P8Style.input_file(path, lines=buf.readlines())