gpt4 book ai didi

python - 对于 Pylint,是否可以为每个 Eclipse 项目设置不同的 pylintrc 文件?

转载 作者:太空狗 更新时间:2023-10-29 17:02:34 24 4
gpt4 key购买 nike

我看到我可以使用 this 为每个 Eclipse 实例更改它解决方案。我想为每个项目设置它。可能吗?

最佳答案

这不是特定于 Eclipse 的,但无论如何它可能有所帮助。根据pylint command line options :

You can specify a configuration file on the command line using the --rcfile option. Otherwise, Pylint searches for a configuration file in the following order and uses the first one it finds:

  1. pylintrc in the current working directory
  2. .pylintrc in the current working directory
  3. If the current working directory is in a Python module, Pylint searches up the hierarchy of Python modules until it finds a pylintrc file. This allows you to specify coding standards on a module-by-module basis. Of course, a directory is judged to be a Python module if it contains an __init__.py file.
  4. The file named by environment variable PYLINTRC
  5. If you have a home directory which isn’t /root:
    1. .pylintrc in your home directory
    2. .config/pylintrc in your home directory
  6. /etc/pylintrc

上面的第 1 点或第 3 点可能会有所帮助。

关于python - 对于 Pylint,是否可以为每个 Eclipse 项目设置不同的 pylintrc 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16266452/

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