Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make pylint enforce docstrings for all functions and methods in a repository

Pylint missing-docstring seems to ignore some functions and private methods in classes.

How can I make pylint enforce that all functions and methods have to have docstrings in a certain repository?

one option I've found is to disable ignoring of private functions: no-docstring-rgx='a^'

like image 245
vladosaurus Avatar asked Nov 16 '25 04:11

vladosaurus


1 Answers

Try to use: no-docstring-rgx=__.*__ this should take into account all functions. By default is: no-docstring-rgx=^_ Which skips private methods

like image 66
Maria Avatar answered Nov 17 '25 21:11

Maria



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!