pretty_flake8.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:automation 作者: kubic-project 项目源码 文件源码
def format_dict(raw):
    output = []
    if raw['file'].startswith('./'):
        output.append(raw['file'][2:])
    else:
        output.append(raw['file'])

    output.append(raw['line'])
    output.append(raw['col'])
    output.append(raw['error_code'])

    output.append(raw['error_desc'].lstrip())

    code_string = linecache.getline(
        output[0],
        int(raw['line'])).lstrip().rstrip()

    output.append(code_string)

    return output
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号