Pylint中的永久配置文件 [英] Permanent Config File in Pylint

查看:282
本文介绍了Pylint中的永久配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为Pylint设置了一个自定义配置文件(名称,方便地是config).必须有一种方法,我不必每次运行都包含--rcfile=config.如何永久设置配置文件?

I've setup a custom configuration file for Pylint (name, conveniently, config). There has to be a way that I don't have to include --rcfile=config on every run. How can I set the config file permanently?

推荐答案

在PYLINTRC环境变量中设置该文件的路径,或者重命名文件$ HOME/.pylintrc或/etc/pylintrc(后者可能仅受支持)在* nix上)

set the path to that file in the PYLINTRC environment variable, or rename the file $HOME/.pylintrc or /etc/pylintrc (the latter is probably only supported on *nix)

这篇关于Pylint中的永久配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆