Mixed docstring styles in code base
Closed this issue · 0 comments
marshallmcdonnell commented
NOTE: This is related to JOSS review openjournals/joss-reviews#5467
Is your feature request related to a problem? Please describe.
Currently, I am coming across multiple docstring styles in the code base.
Is this intentional?
Example:
- Google docstring style: https://github.com/MLMI2-CSSI/foundry/blob/main/foundry/utils.py#L21-L24
- (sort of) numpydoc docstring style(https://numpydoc.readthedocs.io/en/v1.1.0/format.html): https://github.com/MLMI2-CSSI/foundry/blob/main/foundry/https_upload.py#L31-L34
Describe the solution you'd like
Maybe add a docstring format used by Foundry in the contribution guide?
Describe alternatives you've considered
Consistent docstring format in code
NOTE: Related to the docstrings, the following upload_to_endpoint
function and the docstring args do not match (https://github.com/MLMI2-CSSI/foundry/blob/main/foundry/https_upload.py#L19-L29). Missing dest_parent
and dest_child
in the docstrings.