File tree Expand file tree Collapse file tree 5 files changed +8
-11
lines changed Expand file tree Collapse file tree 5 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -111,5 +111,5 @@ def _preprocess_data(
111
111
label_namer : str | None = ...
112
112
) -> Callable : ...
113
113
114
- from matplotlib .cm import _colormaps as colormaps
115
- from matplotlib .colors import _color_sequences as color_sequences
114
+ from matplotlib .cm import _colormaps as colormaps # noqa: E402
115
+ from matplotlib .colors import _color_sequences as color_sequences # noqa: E402
Original file line number Diff line number Diff line change 49
49
if QT_API_ENV in ["pyqt5" , "pyside2" ]:
50
50
QT_API = _ETS [QT_API_ENV ]
51
51
else :
52
- _QT_FORCE_QT5_BINDING = True # noqa
52
+ _QT_FORCE_QT5_BINDING = True # noqa: F811
53
53
QT_API = None
54
54
# A non-Qt backend was selected but we still got there (possible, e.g., when
55
55
# fully manually embedding Matplotlib in a Qt app without using pyplot).
Original file line number Diff line number Diff line change @@ -4018,7 +4018,7 @@ def spy(
4018
4018
** kwargs ,
4019
4019
)
4020
4020
if isinstance (__ret , cm .ScalarMappable ):
4021
- sci (__ret ) # noqa
4021
+ sci (__ret )
4022
4022
return __ret
4023
4023
4024
4024
Original file line number Diff line number Diff line change @@ -192,15 +192,10 @@ convention = "numpy"
192
192
"galleries/examples/user_interfaces/pylab_with_gtk4_sgskip.py" = [" E402" ]
193
193
"galleries/examples/userdemo/pgf_preamble_sgskip.py" = [" E402" ]
194
194
195
- "lib/matplotlib/__init__.py" = [" E402" ]
196
- "lib/matplotlib/_animation_data.py" = [" E501" ]
197
195
"lib/matplotlib/_cm.py" = [" E202" , " E203" ]
198
196
"lib/matplotlib/_mathtext.py" = [" E221" ]
199
197
"lib/matplotlib/_mathtext_data.py" = [" E203" ]
200
- "lib/matplotlib/axes/__init__.py" = [" F403" ]
201
198
"lib/matplotlib/backends/backend_template.py" = [" F401" ]
202
- "lib/matplotlib/font_manager.py" = [" E501" ]
203
- "lib/matplotlib/image.py" = [" F403" ]
204
199
"lib/matplotlib/pylab.py" = [" F401" , " F403" ]
205
200
"lib/matplotlib/pyplot.py" = [" F811" ]
206
201
"lib/matplotlib/tests/test_mathtext.py" = [" E501" ]
@@ -209,7 +204,6 @@ convention = "numpy"
209
204
"lib/mpl_toolkits/axes_grid1/axes_size.py" = [" E272" ]
210
205
"lib/mpl_toolkits/axisartist/angle_helper.py" = [" E221" ]
211
206
"lib/mpl_toolkits/mplot3d/proj3d.py" = [" E201" ]
212
- "lib/pylab.py" = [" F403" ]
213
207
214
208
"galleries/users_explain/artists/paths.py" = [" E402" ]
215
209
"galleries/users_explain/artists/patheffects_guide.py" = [" E402" ]
Original file line number Diff line number Diff line change @@ -304,7 +304,10 @@ def boilerplate_gen():
304
304
'pcolormesh' : 'sci(__ret)' ,
305
305
'hist2d' : 'sci(__ret[-1])' ,
306
306
'imshow' : 'sci(__ret)' ,
307
- 'spy' : 'if isinstance(__ret, cm.ScalarMappable): sci(__ret) # noqa' ,
307
+ 'spy' : (
308
+ 'if isinstance(__ret, cm.ScalarMappable):\n '
309
+ ' sci(__ret)'
310
+ ),
308
311
'quiver' : 'sci(__ret)' ,
309
312
'specgram' : 'sci(__ret[-1])' ,
310
313
'streamplot' : 'sci(__ret.lines)' ,
You can’t perform that action at this time.
0 commit comments