Skip to content

Which docstring format should be followed? CONTRIBUTING.rst lists multiple formats. #4189

Answered by sampsyo
katecoded asked this question in Q&A
Discussion options

You must be logged in to vote

Very good question; thanks for pointing out the inconsistency. Honestly, we haven't exactly converged on this, and the actual truth is that you're welcome to use whatever you think is right.

The somewhat more detailed answer is that the PEP-257 advice you pointed to is quite old (it comes from an older wiki page) and is what we've been using for a long time. A more recent spate of efforts to make beets more consistent ended up proposing we use a more complete style guide for docstrings. It wasn't exactly clear what the "right" one to settle on was, though; the Google guide was the least offensive and got the nod when @jtpavlock did such a bang-up job writing up the CONTRIBUTING.rst. So I …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@katecoded
Comment options

Answer selected by katecoded
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants