gpt4 book ai didi

python - 将 pylint 消息保存到文件

转载 作者:太空狗 更新时间:2023-10-29 22:05:05 26 4
gpt4 key购买 nike

有没有内置的方法可以将 pylint 报告保存到文件中?执行此操作似乎有助于记录项目进度并在进行更改时跨多个文件比较报告元素。

最佳答案

备注:This option is deprecated and it will be removed in Pylint 2.0.

您可以使用 --file-output=y命令行选项。引用手册页:

   --files-output=<y_or_n>
Put messages in a separate file for each module / package speci‐
fied on the command line instead of printing them on stdout.
Reports (if any) will be written in a file name
"pylint_global.[txt|html]". [current: no]

输出格式由 --output-format=<format> 指定格式可以是 text 的选项, parseable , colorized , msvs ( Visual Studio )和html .

关于python - 将 pylint 消息保存到文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10439481/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com