我计划使用不同的 linter 更新项目,因为 pylint 非常慢。我想知道如何更新 .yaml、makefile 和其他文件以与之协调?
我试着自己弄清楚。
我希望它会很简单。
不是。
有一个工具:https://pypi.org/project/pylint-to-ruff/
但基本上,如果你不想保持功能奇偶校验,或者更准确地说,如果你想使用 ruff 的 pylint 默认值(你不能拥有功能奇偶校验,因为 pylint 有一些 ruff 尚未实现的消息),你应该使用以下选项:
[tool.ruff]
select = [
"PL", # pylint
# ... + Other tools of course
]