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

How to setup a configuration file for Pylint in Spyder IDE

如何在 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

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