You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Right now, docstring writing is left up completely to the contributors, who may not apply the correct style format.
In that issue, a tool can't be integrated correctly due to malformed parameter specification.
Current references to the format only include:
I haven't found a way of integrating it in sphinx builds, but there might be some way.
Additional context
This is a summary of one of my comments in #1693: when I first contributed to this repo, one of the things that I felt most discouraging was writing the docstring. If just expressing myself in a foreign language is not enough, trying to copy other's formats, then finding inconsistencies among them; and checking by building the docs, which takes time, are some of the bottlenecks that affect new contributions.
The text was updated successfully, but these errors were encountered:
echedey-ls
changed the title
CD/CI tools of docstring format validation
CD/CI tools for docstring format validation
Mar 16, 2023
Uh oh!
There was an error while loading. Please reload this page.
Moving here conversation from #1693
Description:
Right now, docstring writing is left up completely to the contributors, who may not apply the correct style format.
In that issue, a tool can't be integrated correctly due to malformed parameter specification.
Current references to the format only include:
None of the above methods describe nor mention a user-agnostic way of checking compliance.
Proposed solution:
We could approach this issue by enforcing docstring validation tools, like
numpydoc --validate, numpydoc.validate()
or a module that wraps this function callednumpydoc-validation
.However, mentioned linters in #1693 won't raise errors exactly for that.
numpydoc
raises errors that may hint the user.Meanwhile, upgrading
contributing.rst
and/or the PR template to mentionnumpydoc --validate
use case would be of help.Alternatives:
pydocstyle
I haven't found a way of integrating it in sphinx builds, but there might be some way.
Additional context
This is a summary of one of my comments in #1693: when I first contributed to this repo, one of the things that I felt most discouraging was writing the docstring. If just expressing myself in a foreign language is not enough, trying to copy other's formats, then finding inconsistencies among them; and checking by building the docs, which takes time, are some of the bottlenecks that affect new contributions.
The text was updated successfully, but these errors were encountered: