我知道我可以通过留下评论来禁用 pylint 警告 # pylint: disable=XXXX。
如何对 pep257 错误执行同样的操作?
1 C0110 Exported classes should have docstrings. [pep257]
2 C0110 Exported definitions should have docstrings. [pep257]
我正在编写单元测试并且(我相信)我不需要担心每个测试方法的文档字符串 - 一切都是不言自明的。
请您参考如下方法:
假设您遵循推荐的病原体安装,
.vim/bundle/python-mode/pylint.ini
有一个 disable = 行,您可以向其中添加 C0110
