2

我知道我可以通过发表评论来禁用 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

4

1 回答 1

1

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

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

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

于 2014-03-18T15:02:33.120 回答