-
-
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -111,7 +111,7 @@ it, use | |||||
.. code-block:: sh | ||||||
|
||||||
make SPHINXOPTS= html | ||||||
|
||||||
On Windows the arguments must be at the end of the statement: | ||||||
|
||||||
.. code-block:: bat | ||||||
|
@@ -131,8 +131,8 @@ On Windows, either use the format shown above or set options as environment vari | |||||
|
||||||
.. code-block:: bat | ||||||
|
||||||
set O=-W --keep-going -j4 | ||||||
make html | ||||||
set O=-W --keep-going -j4 | ||||||
make html | ||||||
|
||||||
.. _writing-rest-pages: | ||||||
|
||||||
|
@@ -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. | ||||||
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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
"quickly" - this takes 3min CPU time on my PC. |
||||||
following command on any changed files: | ||||||
|
||||||
.. code-block:: bash | ||||||
|
||||||
$ flake8 --docstring-convention=all | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||||||
|
||||||
Note that this linter requires ``flake8-docstrings`` and ``pydocstyle<4`` to be | ||||||
installed. | ||||||
|
||||||
Much of the ReST_ syntax discussed above (:ref:`writing-rest-pages`) can be | ||||||
used for links and references. These docstrings eventually populate the | ||||||
used for links and references. These docstrings eventually populate the | ||||||
:file:`doc/api` directory and form the reference documentation for the | ||||||
library. | ||||||
|
||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
In some points we're intentionally deviating from numpydoc, e.g. usage of
optional
.