11[flake8]
2+ max-line-length = 79
23ignore =
34 # Normal default
45 E121,E123,E126,E226,E24,E704,W503,W504,
@@ -7,18 +8,20 @@ ignore =
78 E265, E266,
89 E305, E306,
910 E722, E741,
10- F401, F403, F811, F841,
11+ F811, F841,
1112 # Some new flake8 ignores:
1213 N801, N802, N803, N806, N812,
1314 # pydocstyle
1415 D100, D101, D102, D103, D104, D105, D106, D107,
15- D200, D202, D203, D204, D205, D207, D208, D209, D212, D213,
16+ D200, D202, D203, D204, D205, D207, D209, D212, D213,
1617 D300, D301
1718 D400, D401, D402, D403, D413,
1819
1920exclude =
2021 .git
2122 build
23+ doc/gallery
24+ doc/tutorials
2225 # External files.
2326 versioneer.py
2427 tools/gh_api.py
@@ -29,32 +32,51 @@ exclude =
2932per-file-ignores =
3033 setup.py: E402
3134 setupext.py: E501
35+ tests.py: F401
3236
33- tools/compare_backend_driver_results.py: E501
3437 tools/subset.py: E221, E251, E261, E302, E501
3538
39+ lib/matplotlib/__init__.py: F401
3640 lib/matplotlib/_cm.py: E202, E203, E302
3741 lib/matplotlib/_mathtext_data.py: E203, E261
38- lib/matplotlib/font_manager.py: E203, E221, E251, E501
39- lib/matplotlib/mathtext.py: E201, E202, E203, E211, E221, E222, E225, E251, E301, E402
40- lib/matplotlib/pylab.py: E501
42+ lib/matplotlib/animation.py: F401
43+ lib/matplotlib/axes/__init__.py: F401, F403
44+ lib/matplotlib/axes/_axes.py: F401
45+ lib/matplotlib/backends/backend_*.py: F401
46+ lib/matplotlib/backends/qt_editor/formlayout.py: F401, F403
47+ lib/matplotlib/cbook/__init__.py: F401
48+ lib/matplotlib/figure.py: F401
49+ lib/matplotlib/font_manager.py: E221, E251, E501
50+ lib/matplotlib/image.py: F401, F403
51+ lib/matplotlib/lines.py: F401
52+ lib/matplotlib/mathtext.py: E221, E251
53+ lib/matplotlib/pylab.py: F401, F403
54+ lib/matplotlib/pyplot.py: F401
4155 lib/matplotlib/rcsetup.py: E501
56+ lib/matplotlib/style/__init__.py: F401
57+ lib/matplotlib/testing/conftest.py: F401
58+ lib/matplotlib/testing/compare.py: F401
59+ lib/matplotlib/testing/decorators.py: F401
60+ lib/matplotlib/tests/conftest.py: F401
61+ lib/matplotlib/tests/test_backend_qt.py: F401
4262 lib/matplotlib/tests/test_mathtext.py: E501
63+ lib/matplotlib/text.py: F401
4364 lib/matplotlib/transforms.py: E201, E202, E203
65+ lib/matplotlib/tri/__init__.py: F401, F403
4466 lib/matplotlib/tri/triinterpolate.py: E201, E221
45-
46- lib/mpl_toolkits/axes_grid1/axes_divider .py: E402, E501
67+ lib/mpl_toolkits/axes_grid/*: F401, F403
68+ lib/mpl_toolkits/axes_grid1/__init__ .py: F401
4769 lib/mpl_toolkits/axes_grid1/axes_size.py: E272
48- lib/mpl_toolkits/axes_grid1/colorbar .py: E225, E501
70+ lib/mpl_toolkits/axisartist/__init__ .py: F401
4971 lib/mpl_toolkits/axisartist/angle_helper.py: E221
50- lib/mpl_toolkits/axisartist/clip_path.py: E225
51- lib/mpl_toolkits/axisartist/grid_helper_curvelinear.py: E225, E501
72+ lib/mpl_toolkits/axisartist/axes_divider.py: F401
73+ lib/mpl_toolkits/axisartist/axes_rgb.py: F401
74+ lib/mpl_toolkits/axisartist/axislines.py: F401
75+ lib/mpl_toolkits/mplot3d/__init__.py: F401
76+ lib/mpl_toolkits/tests/conftest.py: F401
77+ lib/pylab.py: F401, F403
5278
5379 doc/conf.py: E402, E501
54- doc/sphinxext/github.py: E302, E501
55- doc/sphinxext/math_symbol_table.py: E302, E501
56- doc/sphinxext/skip_deprecated.py: E302
57- doc/users/generate_credits.py: E302, E501
5880 tutorials/advanced/path_tutorial.py: E402, E501
5981 tutorials/advanced/patheffects_guide.py: E402, E501
6082 tutorials/advanced/transforms_tutorial.py: E402, E501
@@ -81,6 +103,7 @@ per-file-ignores =
81103
82104 examples/animation/frame_grabbing_sgskip.py: E402
83105 examples/axes_grid1/inset_locator_demo.py: E402
106+ examples/axes_grid1/scatter_hist_locatable_axes.py: E401, E402
84107 examples/axisartist/demo_curvelinear_grid.py: E402
85108 examples/color/color_by_yvalue.py: E402
86109 examples/color/color_cycle_default.py: E402
@@ -105,6 +128,7 @@ per-file-ignores =
105128 examples/images_contours_and_fields/contourf_hatching.py: E402
106129 examples/images_contours_and_fields/contourf_log.py: E402
107130 examples/images_contours_and_fields/demo_bboximage.py: E402
131+ examples/images_contours_and_fields/image_antialiasing.py: E402
108132 examples/images_contours_and_fields/image_clip_path.py: E402
109133 examples/images_contours_and_fields/image_demo.py: E402
110134 examples/images_contours_and_fields/image_masked.py: E402
@@ -137,6 +161,7 @@ per-file-ignores =
137161 examples/lines_bars_and_markers/filled_step.py: E402
138162 examples/lines_bars_and_markers/horizontal_barchart_distribution.py: E402
139163 examples/lines_bars_and_markers/joinstyle.py: E402
164+ examples/lines_bars_and_markers/scatter_hist.py: E402
140165 examples/lines_bars_and_markers/scatter_piecharts.py: E402
141166 examples/lines_bars_and_markers/scatter_with_legend.py: E402
142167 examples/lines_bars_and_markers/span_regions.py: E402
@@ -186,7 +211,6 @@ per-file-ignores =
186211 examples/pyplots/text_commands.py: E231, E402
187212 examples/pyplots/text_layout.py: E231, E402
188213 examples/pyplots/whats_new_1_subplot3d.py: E402
189- examples/pyplots/whats_new_98_4_fancy.py: E302, E402
190214 examples/pyplots/whats_new_98_4_fill_between.py: E225, E402
191215 examples/pyplots/whats_new_98_4_legend.py: E228, E402
192216 examples/pyplots/whats_new_99_axes_grid.py: E402
@@ -223,6 +247,7 @@ per-file-ignores =
223247 examples/style_sheets/plot_solarizedlight2.py: E501
224248 examples/subplots_axes_and_figures/axes_margins.py: E402
225249 examples/subplots_axes_and_figures/axes_zoom_effect.py: E402
250+ examples/subplots_axes_and_figures/custom_figure_class.py: E402
226251 examples/subplots_axes_and_figures/demo_constrained_layout.py: E402
227252 examples/subplots_axes_and_figures/demo_tight_layout.py: E402
228253 examples/subplots_axes_and_figures/secondary_axis.py: E402
@@ -232,6 +257,7 @@ per-file-ignores =
232257 examples/text_labels_and_annotations/annotation_demo.py: E501
233258 examples/text_labels_and_annotations/demo_text_rotation_mode.py: E402
234259 examples/text_labels_and_annotations/custom_legends.py: E402
260+ examples/text_labels_and_annotations/fancyarrow_demo.py: E402
235261 examples/text_labels_and_annotations/font_family_rc_sgskip.py: E402
236262 examples/text_labels_and_annotations/font_file.py: E402
237263 examples/text_labels_and_annotations/legend.py: E402
0 commit comments