Question

I know that I can disable pylint warnings by leaving a comment # pylint: disable=XXXX.

How do I do the same thing for pep257 errors?

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

I am writing unit tests and (I believe) I do not need to worry about docstrings for every single test method - everything is quite self-explanatory.

I am using the https://github.com/klen/python-mode.

Était-ce utile?

La solution

Assuming you followed the recommended pathogen installation,

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

has a disable = line to which you may add C0110

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top