darglint icon indicating copy to clipboard operation
darglint copied to clipboard

Ability to enforce package and module level docstrings

Open danhje opened this issue 3 years ago • 0 comments

From PEP-257:

"The docstring for a module should generally list the classes, exceptions and functions (and any other objects) that are exported by the module, with a one-line summary of each. (These summaries generally give less detail than the summary line in the object’s docstring.) The docstring for a package (i.e., the docstring of the package’s init.py module) should also list the modules and subpackages exported by the package."

I would really appreciate the ability to enforce the existence of package- and module level docstrings. Checking these docstrings against the content of the package / module is not necessary for this feature to be useful.

danhje avatar Apr 30 '22 18:04 danhje