Skip to content

Commit 61842d1

Browse files
committed
DOCS: add links and sections to PR template
1 parent 0e87f48 commit 61842d1

File tree

2 files changed

+33
-11
lines changed

2 files changed

+33
-11
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,22 @@
22

33
## PR Checklist
44

5-
- [ ] Has Pytest style unit tests
6-
- [ ] Code is [Flake 8](http://flake8.pycqa.org/en/latest/) compliant
7-
- [ ] New features are documented, with examples if plot related
8-
- [ ] Documentation is sphinx and numpydoc compliant
9-
- [ ] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
10-
- [ ] Documented in doc/api/next_api_changes/* if API changed in a backward-incompatible way
5+
<!-- Please remove any checkboxes that do not apply to this PR. -->
6+
7+
Code:
8+
- [ ] has [pytest style](https://matplotlib.org/devel/testing.html) unit tests (and `pytest` passes).
9+
- [ ] is [Flake 8](https://flake8.pycqa.org/en/latest/) compliant (run `flake8` on changed files to check).
10+
11+
New features:
12+
- [ ] are documented, [with examples](https://matplotlib.org/devel/documenting_mpl.html#writing-examples-and-tutorials) if plot related.
13+
- [ ] have an entry in `doc/users/next_whats_new/` (follow instructions in the "What's New" [README](https://github.com/matplotlib/matplotlib/blob/master/doc/users/next_whats_new/README.rst)).
14+
15+
API Changes:
16+
- [ ] are documented in `doc/api/next_api_changes/` (follow instructions in the API changes [README](https://github.com/matplotlib/matplotlib/blob/master/doc/api/next_api_changes/README.rst)).
17+
18+
Documentation:
19+
- [ ] is [sphinx](https://www.sphinx-doc.org/en/master/index.html) and [numpydoc](https://numpydoc.readthedocs.io/en/latest/format.html) compliant (the docs should [build](https://matplotlib.org/devel/documenting_mpl.html#building-the-docs) without error).
20+
- [ ] conforms to Matplotlib [style conventions](https://matplotlib.org/devel/documenting_mpl.html#formatting-and-style-conventions) (and `flake8 --docstring-convention=all` [passes](https://matplotlib.org/devel/documenting_mpl.html#writing-docstrings)).
1121

1222
<!--
1323
Thank you so much for your PR! To help us review your contribution, please
@@ -39,3 +49,4 @@ the recommended next step seems overly demanding, if you would like help in
3949
addressing a reviewer's comments, or if you have been waiting too long to hear
4050
back on your PR.
4151
-->
52+

doc/devel/documenting_mpl.rst

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ it, use
111111
.. code-block:: sh
112112
113113
make SPHINXOPTS= html
114-
114+
115115
On Windows the arguments must be at the end of the statement:
116116

117117
.. code-block:: bat
@@ -131,8 +131,8 @@ On Windows, either use the format shown above or set options as environment vari
131131

132132
.. code-block:: bat
133133
134-
set O=-W --keep-going -j4
135-
make html
134+
set O=-W --keep-going -j4
135+
make html
136136
137137
.. _writing-rest-pages:
138138

@@ -358,9 +358,20 @@ blocks in source code that explain how the code works.
358358
you may see in the source code. Pull requests updating docstrings to
359359
the current style are very welcome.
360360

361-
All new or edited docstrings should conform to the `numpydoc docstring guide`_.
361+
All new or edited docstrings should conform to the `numpydoc docstring guide`_,
362+
and to the guide below wherever the numpydoc guide is ambiguous.
363+
To quickly check that new docstrings conform to our style guide, run the
364+
following command on any changed files:
365+
366+
.. code-block:: bash
367+
368+
$ flake8 --docstring-convention=all
369+
370+
Note that this linter requires ``flake8-docstrings`` and ``pydocstyle<4`` to be
371+
installed.
372+
362373
Much of the ReST_ syntax discussed above (:ref:`writing-rest-pages`) can be
363-
used for links and references. These docstrings eventually populate the
374+
used for links and references. These docstrings eventually populate the
364375
:file:`doc/api` directory and form the reference documentation for the
365376
library.
366377

0 commit comments

Comments
 (0)