Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76c1eea

Browse files
committed
CI: pydocstyle>=5.1.0, and update PR instructions
New pydocstyle will always think a line with just "TODO" on it is a title, and other minor changes to make sure CI passes.
1 parent 4fb84b4 commit 76c1eea

File tree

6 files changed

+17
-26
lines changed

6 files changed

+17
-26
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- [ ] Is [Flake 8](https://flake8.pycqa.org/en/latest/) compliant (run `flake8` on changed files to check).
99
- [ ] New features are documented, with examples if plot related.
1010
- [ ] Documentation is sphinx and numpydoc compliant (the docs should [build](https://matplotlib.org/devel/documenting_mpl.html#building-the-docs) without error).
11-
- [ ] Conforms to Matplotlib style conventions (install `flake8-docstrings` and `pydocstyle<4` and run `flake8 --docstring-convention=all`).
11+
- [ ] Conforms to Matplotlib style conventions (install `flake8-docstrings` and run `flake8 --docstring-convention=all`).
1212
- [ ] New features have an entry in `doc/users/next_whats_new/` (follow instructions in README.rst there).
1313
- [ ] API changes documented in `doc/api/next_api_changes/` (follow instructions in README.rst there).
1414

examples/style_sheets/plot_solarizedlight2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
using all 8 accents of the color palette - starting with blue
1818
19-
ToDo:
19+
Still TODO:
2020
2121
- Create alpha values for bar and stacked charts. .33 or .5
2222
- Apply Layout Rules

examples/text_labels_and_annotations/rainbow_text.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
On the matplotlib-users list back in February 2012, Gökhan Sever asked the
1111
following question:
1212
13-
Is there a way in matplotlib to partially specify the color of a string?
14-
15-
Example:
16-
17-
plt.ylabel("Today is cloudy.")
18-
19-
How can I show "today" as red, "is" as green and "cloudy." as blue?
20-
21-
Thanks.
13+
| Is there a way in matplotlib to partially specify the color of a string?
14+
|
15+
| Example:
16+
|
17+
| plt.ylabel("Today is cloudy.")
18+
|
19+
| How can I show "today" as red, "is" as green and "cloudy." as blue?
20+
|
21+
| Thanks.
2222
2323
The solution below is modified from Paul Ivanov's original answer.
2424
"""

lib/matplotlib/backends/backend_agg.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""
2-
An agg_ backend.
3-
4-
.. _agg: http://antigrain.com/
2+
An `Anti-Grain Geometry <http://antigrain.com>`_ (AGG) backend.
53
64
Features that are implemented:
75
@@ -16,7 +14,7 @@
1614
* draw polygon
1715
* freetype2 w/ ft2font
1816
19-
TODO:
17+
Still TODO:
2018
2119
* integrate screen dpi w/ ppi and text
2220
"""

requirements/testing/flake8.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Extra pip requirements for the GitHub Actions flake8 build
22

33
flake8>=3.8
4-
pydocstyle<4.0
5-
flake8-docstrings
4+
# versions less than 5.1.0 raise on some interp'd docstrings
5+
pydocstyle>=5.1.0
6+
# 1.4.0 adds docstring-convention=all
7+
flake8-docstrings>=1.4.0

tutorials/text/mathtext.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
r"""
22
Writing mathematical expressions
33
================================
4-
54
An introduction to writing mathematical expressions in Matplotlib.
65
76
You can use a subset TeX markup in any matplotlib text string by placing it
@@ -56,7 +55,6 @@
5655
5756
Subscripts and superscripts
5857
---------------------------
59-
6058
To make subscripts and superscripts, use the ``'_'`` and ``'^'`` symbols::
6159
6260
r'$\alpha_i > \beta_i$'
@@ -86,7 +84,6 @@
8684
8785
Fractions, binomials, and stacked numbers
8886
-----------------------------------------
89-
9087
Fractions, binomials, and stacked numbers can be created with the
9188
``\frac{}{}``, ``\binom{}{}`` and ``\genfrac{}{}{}{}{}{}`` commands,
9289
respectively::
@@ -130,7 +127,6 @@
130127
131128
Radicals
132129
--------
133-
134130
Radicals can be produced with the ``\sqrt[]{}`` command. For example::
135131
136132
r'$\sqrt{2}$'
@@ -153,7 +149,6 @@
153149
154150
Fonts
155151
-----
156-
157152
The default font is *italics* for mathematical symbols.
158153
159154
.. note::
@@ -270,7 +265,6 @@
270265
271266
Custom fonts
272267
~~~~~~~~~~~~
273-
274268
mathtext also provides a way to use custom fonts for math. This method is
275269
fairly tricky to use, and should be considered an experimental feature for
276270
patient users only. By setting :rc:`mathtext.fontset` to ``custom``,
@@ -306,7 +300,6 @@
306300
307301
Accents
308302
-------
309-
310303
An accent command may precede any symbol to add an accent above it. There are
311304
long and short forms for some of them.
312305
@@ -346,7 +339,6 @@
346339
347340
Symbols
348341
-------
349-
350342
You can also use a large number of the TeX symbols, as in ``\infty``,
351343
``\leftarrow``, ``\sum``, ``\int``.
352344
@@ -359,7 +351,6 @@
359351
360352
Example
361353
-------
362-
363354
Here is an example illustrating many of these features in context.
364355
365356
.. figure:: ../../gallery/pyplots/images/sphx_glr_pyplot_mathtext_001.png

0 commit comments

Comments
 (0)