-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Misc numpydoc syntax fixing. #3205
Conversation
This uses https://github.com/Carreau/vélin to try to automatically fix a couple of issues in docstrings to match the numpydoc syntax. - Space before colon in Parameter sections is necesary for numpydoc to properly recognize parameter name and type. - Naming of sections in numpydoc is plural usually This also remove a couple of documented parameters that don't exists (either removed, or copy-past is my guess).
Hi! Welcome, and thanks for opening this pull request. We have some guidelines for new pull requests, and soon you'll hear back about the results of our tests and continuous integration checks. Thank you for your contribution! |
Very cool, thanks Matthias ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Thanks Matthias!!!!
Maybe we can open a "good first contribution" issue to add the pre-commit hook! That would be a nice fix for a new contributor. What do you think @neutrinoceros ? |
I think it'd take much less time to do it myself TBF. I'm giving priority to Matthias here as courtesy to the author :) |
That's the nature of all "good first contribution" issues 🙂 |
True. I also don't think we should advertise "solve our infrastructure" as good first issues. Most potential contributors wouldn't know what to do, and the others could question our ability to do the job. |
If somebody questions our ability to do our job because we're trying to build community with good, technical, not demeaning "good first contribution" labels on issues that's their problem, not ours. |
I think it is not yet stable enough to be added as a an alway on pre-commit; there are still bugs, like for example if you forget the blank line before the Return section, because of how numpydoc works it will just nuke the section. There are also case where it get things wrong like:
It will replace to So maybe a bit later, when I'm more confident that it won't just throw away a paragraph you took 10 minutes to write :-) |
Totally fine by me. In that case we can merge this as in AFAIC. Thanks again ! |
Hooray! Congratulations on your first merged pull request! We hope we keep seeing you around! 🎆 |
This uses https://github.com/Carreau/velin to try to automatically fix a
couple of issues in docstrings to match the numpydoc syntax.
properly recognize parameter name and type.
This also remove a couple of documented parameters that don't exists
(either removed, or copy-past is my guess).