Skip to content

Commit e01ac9a

Browse files
committed
DOCS: add links and sections to PR template
1 parent bb71b00 commit e01ac9a

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

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)