You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mention more prominently that section ordering matters #68
Having a standard ordering of sections in docstrings within and between projects is a good thing - consistency matters. Why would we want to drop this requirement?
It seems a bit weird to have a required order on optional sections.
I agree that for some sections the order make lots of sense (should not put Parameters last and References first), but shuffling sections 7-11 does not seem like a huge issue to me. There is value in letting people pick an ordering there that makes the most sense on a function-by-function basis.
To be clear, I will be perfectly happy with the outcome of 'It is an intentional choice to have a fixed order' from this discussion (so as to not waste even more of everyone's time).
Activity
tacaswell commentedon Nov 20, 2016
Or explicitly drop the order as a requirement ;)
rgommers commentedon Nov 20, 2016
Having a standard ordering of sections in docstrings within and between projects is a good thing - consistency matters. Why would we want to drop this requirement?
tacaswell commentedon Nov 20, 2016
It seems a bit weird to have a required order on optional sections.
I agree that for some sections the order make lots of sense (should not put
Parameterslast andReferencesfirst), but shuffling sections 7-11 does not seem like a huge issue to me. There is value in letting people pick an ordering there that makes the most sense on a function-by-function basis.To be clear, I will be perfectly happy with the outcome of 'It is an intentional choice to have a fixed order' from this discussion (so as to not waste even more of everyone's time).
stefanv commentedon Nov 22, 2016
stefanv commentedon Nov 23, 2016
I'm changing my opinion on this one after other discussion.
See #78
larsoner commentedon Oct 23, 2017
My vote would be to optionally, on-by-default warn if optional sections are not ordered with the "standard" ordering.
DOC Note on section ordering, and add missing sections
jnothman commentedon Nov 1, 2017
In order to open this to another contributor, I'm making a new issue instead.