【问题标题】:How to setup a configuration file for Pylint in Spyder IDE如何在 Spyder IDE 中为 Pylint 设置配置文件
【发布时间】:2016-10-02 07:38:55
【问题描述】:

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

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

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

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

没有找到配置文件,使用默认配置

【问题讨论】:

    标签: python batch-file ide spyder pylint


    【解决方案1】:

    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

    【讨论】:

      猜你喜欢
      • 2010-11-25
      • 1970-01-01
      • 2022-10-09
      • 1970-01-01
      • 1970-01-01
      • 2014-02-25
      • 2019-08-12
      • 2019-01-02
      • 1970-01-01
      相关资源
      最近更新 更多