-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOCS: add links and sections to PR template #18348
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
Conversation
4f221f7
to
e827dd9
Compare
e827dd9
to
61842d1
Compare
61842d1
to
e01ac9a
Compare
@story645 as promised, a separate PR where I take out the "there", and generally clean this up more. Feel free to insert all of your strong opinions here :) |
um the changed file is |
@@ -358,9 +358,20 @@ blocks in source code that explain how the code works. | |||
you may see in the source code. Pull requests updating docstrings to | |||
the current style are very welcome. | |||
|
|||
All new or edited docstrings should conform to the `numpydoc docstring guide`_. | |||
All new or edited docstrings should conform to the `numpydoc docstring guide`_, | |||
and to the guide below wherever the numpydoc guide is ambiguous. |
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.
and to the guide below wherever the numpydoc guide is ambiguous. | |
with the adaptions and clarifications listed below. |
In some points we're intentionally deviating from numpydoc, e.g. usage of optional
.
|
||
.. code-block:: bash | ||
|
||
$ flake8 --docstring-convention=all |
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.
Why do we have to modify the standards from the .flake8 config file?
All new or edited docstrings should conform to the `numpydoc docstring guide`_. | ||
All new or edited docstrings should conform to the `numpydoc docstring guide`_, | ||
and to the guide below wherever the numpydoc guide is ambiguous. | ||
To quickly check that new docstrings conform to our style guide, run the |
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.
To quickly check that new docstrings conform to our style guide, run the | |
To check that new docstrings conform to our style guide, run the |
"quickly" - this takes 3min CPU time on my PC.
I'm going to close this as too verbose. But feel free to ask for a re-open if you feel strongly the PR template is poor. |
PR Summary
Goes on top of #18341, which has been kept separate since everyone has strong opinions about organization.Here's my proposal for how to reorg the checklist:Here's what the checklist looks like with those changes:
PR Checklist
Code:
pytest
passes).flake8
on changed files to check).New features:
doc/users/next_whats_new/
(follow instructions in the "What's New" README).API Changes:
doc/api/next_api_changes/
(follow instructions in the API changes README).Documentation:
flake8 --docstring-convention=all
passes).