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.