Open
Description
The recently added numpydoc.validate
functionality fails on the reference docstring in doc/example.py
.
>>> from numpydoc.validate import validate
>>> validate("doc.example.foo")
{'type': 'function',
[...]
'deprecated': False,
'file': '/home/rth/src/numpydoc/doc/example.py',
'file_line': 37,
'errors': [
('GL01',
'Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between)'),
('GL02',
'Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes)'),
('GL03',
'Double line break found; please use only one blank line to separate sections or paragraphs, and do not leave blank lines at the end of docstrings'),
('SS06', 'Summary should fit in a single line'),
('RT03', 'Return value has no description'),
('SA02',
'Missing period at end of description for See Also "numpy.array" reference'),
('SA03',
'Description should be capitalized for See Also "numpy.array" reference'),
('SA04', 'Missing description for See Also "numpy.dot" reference'),
('SA04', 'Missing description for See Also "numpy.linalg.norm" reference'),
('SA04', 'Missing description for See Also "numpy.eye" reference')]}
It seems the validator is contradicting some of the docstring formatting rules (e.g. #241)
Metadata
Metadata
Assignees
Labels
No labels