Pylint 忽略特定名称 [英] Pylint ignore specific names

查看:45
本文介绍了Pylint 忽略特定名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 pylint 有问题,即有时它会为某些变量/类/模块等重复相同的消息,但我找不到解决方法.我想说的是pylint不要使用某些选项或 rcfile 指令检查 [此模块|模块ZZZ"] 中变量 YYY 的 [消息 XXX|任何消息]".

I have a problem with pylint, i.e. sometimes it repeats the same message for some variable/class/module etc. and I can't find a workaround for that. What I want is to say pylint "don't check [message XXX|any message] for variable YYY in [this module|module "ZZZ"]" with some option or rcfile directive.

推荐答案

当前版本的 Pylint 不支持您所要求的内容.

What you are asking for is not supported in the current version of Pylint.

您可能希望与维护人员取得联系,并向他们提出功能请求和实施方案.

You may want to get in touch with the maintainers and propose them a feature request and an implementation.

这篇关于Pylint 忽略特定名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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