Open
Description
This Issue follows up #105 (comment).
We need a set of conventions that we should follow when writing docstring within the functions and classes:
- Follow the google style documentation as discussed in Documentation standard? #97. Official example here (and for reference, here's a comparison to the numpy style)
- Don't say "defaults to ____" unless it needs further explanation. The default value is already available in the method/function definition.
- If function needs to be instantiated, explicitly show in example. See here for discussion of class vs instance methods.
- Provide link to Controlled Vocabulary if it needs CV as value.
- Other code comments besides docstrings must use
#
rather than triple quotes, because all triple quotes, regardless of where they're found will be interpreted as doctrings by Sphinx.
Currently (10/1) one of the best docstrings available as an example is in ReadODM2.getAffiliations
cc @emiliom
Please add more as necessary.
Metadata
Metadata
Assignees
Labels
No labels