Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling PEP-257 warnings in ]vim python-mode

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.

like image 751
Ruslan Osipov Avatar asked Jan 01 '26 03:01

Ruslan Osipov


1 Answers

Assuming you followed the recommended pathogen installation,

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

has a disable = line to which you may add C0110

like image 146
jrwren Avatar answered Jan 02 '26 16:01

jrwren



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!