-
As said in the title, CONTRIBUTING.rst points to two different style guides for writing docstrings. In the Code Contribution Ideas section, it says beets follows PEP-257, while in the Style section, it says beets follows google's docstring format. Since these are two completely different formats, which should be followed? I wanted to post this here before making an issue just in case the answer is somewhere obvious or I am missing something (I am looking to make a contribution to the docstrings of this project, for context). Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
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 I hope this helps! Sorry it's a little fuzzy. |
Beta Was this translation helpful? Give feedback.
-
Just to keep track of this: #4191 has some more discussion about this. Namely, @sampsyo commented
|
Beta Was this translation helpful? Give feedback.
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 …