【问题标题】:Pylint nested pylintrc : Specify a configuration filePylint 嵌套 pylintrc :指定配置文件
【发布时间】:2022-07-08 14:29:10
【问题描述】:

目标

我想在不指定文件路径的情况下使用 pylint(只需运行 pylint 而不是 pylint --rcfile=linter/.pylintrc),因为我想将所有 linter 相关文件保存在子文件夹 linter/ 中。

我想在根文件夹中添加一个.pylintrc 文件,只是重定向到实际的配置文件linter/.pylintrc

探索

rcfile 选项似乎是我要找的,它似乎没有从子文件夹中导入设置。我错过了什么?

建议.pylintrc 文件重定向:

[MASTER]
# Specify a configuration file.
rcfile=subfolder/.pylintrc

【问题讨论】:

    标签: configuration pylint linter pylintrc


    【解决方案1】:

    pylint 不支持此功能,请参阅 this pull request

    【讨论】:

      猜你喜欢
      • 2017-12-14
      • 2022-11-11
      • 1970-01-01
      • 2010-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多