If PyCharm is not available, there is a small tool called ckdoc written in Python 3.5 .
Given one or more files, it finds modules, classes, and functions without docstring. It does not search the imported built-in or external libraries - it considers objects defined in files located in the same folder as the given file or subfolders of this folder.
Usage example (after removing some docstrings)
> ckdoc / ckdoc.py "ckdoc / ckdoc.py"
ckdoc / ckdoc.py
module
ckdoc
function
Check.documentable
anykey_defaultdict .__ getitem__
group_by
namegetter
type
Check
There are times when this does not work. One such case is using Anaconda with modules . A possible workaround in this case is to use ckdoc from the Python shell. Import the necessary modules, and then call the check function.
> import ckdoc, main
> ckdoc.check (main)
/tmp/main.py
module
main
function
main
/tmp/custom_exception.py
type
CustomException
function
CustomException .__ str__
False
The check function returns True if there are no missing docstrings.
source share