-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
type: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarificationtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
Description
pytest uses various docstring styles, which also leaks to the documentation, and I'm starting to develop an OCD from this!
I propose we use this style:
def func(arg: ArgType) -> Foo:
"""Do important stuff.
More detailed info here, in separate paragraphs from the subject line.
Use proper sentences -- start sentences with capital letters and end with periods.
Can include annotated documentation:
:param ArgType arg: an argument which determines stuff.
:returns the result.
:rtype Foo
:raises ValueError
"""
After we agree on a style I'll make a sweep over the code (possibly gradual) to update to it.
RonnyPfannschmidt and twmr
Metadata
Metadata
Assignees
Labels
type: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarificationtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature