-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: inline documentation (docstrings) #3092
Comments
This comment has been minimized.
This comment has been minimized.
@jorgeorpinel Why is the second comment marked as "resolved"? EDIT: oh, because of the PR, right... |
Reopening this since I don't think we put even reasonably good enough docstrings for external API. We should describe parameters, important edge cases, etc. Alternatively we can consider linking with the docs website, but I would (as a user) prefer to have everything I would need in docstrings. |
True @shcheklein. I guess I thought we would do that in #3176 (so I marked this issue as closable by #2316). Do we need both issues? (This and #3176) |
@jorgeorpinel it feels they have a bit different purpose - one is about the style guide, this one is about actual docs (e.g. do we need to specify arguments, return values, may be even examples? etc?) |
OK
I think definitely yes arguments and return values. Not sure about examples... Maybe not for now but link to the new api ref in dvc.org (Do we need a new redirect similar to BUT we still need to decide on #3176 before I can write these parts of the docstrings. p.s. does this issue have a priority? None assigned at the moment. And #3176 has "p3 nice to have". Cc @efiop |
I don't think we use docstrings much since the code is meant to be self-documenting for developers.
However, for
dvc.api
(currently a single file: https://github.com/iterative/dvc/blob/master/dvc/api.py) I think we should have significant code documentation (multi-line file and function docstrings, other comments).Let's find a good docstring format we want to use and maintain e.g. Sphinx?
The text was updated successfully, but these errors were encountered: