禁用pylint警告消息 [英] Disable warning message of pylint
本文介绍了禁用pylint警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用 pylint
检查代码会显示很多有关变量名称的消息,如下所示:
Checking code with pylint
shows so many messages about variable names as follows:
类型方法的名称 getCurrentChannel无效(应匹配
[a-z _] [a-z0-9 _] {2,30} $)
Invalid name "getCurrentChannel" for type method (should match [a-z_][a-z0-9_]{2,30}$)
如何禁用这些消息?
推荐答案
pylint --disable=C0103 filename
运行此命令不会显示无效变量名的消息。
Running this command will not show messages for "Invalid variable name".
这篇关于禁用pylint警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文