3

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^'

vladosaurus
  • 1,638
  • 1
  • 13
  • 18

1 Answers1

7

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

Maria
  • 176
  • 1
  • 11