Skip to main content
 首页 » 编程设计

python之在 ]vim python-mode 中禁用 PEP-257 警告

2025年05月04日9kerrycode

我知道我可以通过留下评论来禁用 pylint 警告 # pylint: disable=XXXX。

如何对 pep257 错误执行同样的操作?

1 C0110 Exported classes should have docstrings. [pep257] 
2 C0110 Exported definitions should have docstrings. [pep257] 

我正在编写单元测试并且(我相信)我不需要担心每个测试方法的文档字符串 - 一切都是不言自明的。

我正在使用 https://github.com/klen/python-mode .

请您参考如下方法:

假设您遵循推荐的病原体安装,

.vim/bundle/python-mode/pylint.ini 

有一个 disable = 行,您可以向其中添加 C0110