我知道可以通过添加注释# pylint: disable=XXXX
来禁用pylint警告。
那么如何对pep257错误执行相同的操作呢?
1 C0110 Exported classes should have docstrings. [pep257]
2 C0110 Exported definitions should have docstrings. [pep257]
我正在编写单元测试,(我相信)我不需要为每个测试方法担心文档字符串 - 一切都很自我解释。
我正在使用https://github.com/klen/python-mode。