gpt4 book ai didi

python - 如何在 Spyder IDE 中为 Pylint 设置配置文件

转载 作者:太空宇宙 更新时间:2023-11-04 00:49:47 25 4
gpt4 key购买 nike

如何在 Spyder IDE 中为 Pylint(命令行开关 --rcfile)指定自定义配置文件?

我尝试像这样编辑 pylint.batpylint-gui.bat:

python "%~dpn0" %* --rcfile="P:/path/to/pylintrc"

但没有成功。我总是在输出中看到:

No config file found, using default configuration

最佳答案

Spyder 将运行 pylint.exe,而不是 pylint.bat,这就是您尝试的方法不起作用的原因。

最简单的方法是将您的 pylintrc 放在您的项目文件夹中,因为 pylint 会自动在那里查找。

https://docs.pylint.org/run.html#command-line-options

编辑:上面的链接似乎已经失效。看这里:https://pylint.readthedocs.io/en/latest/user_guide/run.html#command-line-options

关于python - 如何在 Spyder IDE 中为 Pylint 设置配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37594025/

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