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

Skip to content

TST: make E402 a universal flake8 ignore #11621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
211 changes: 52 additions & 159 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ignore =
E111, E114, E115, E116, E122, E124, E125, E127, E128, E129, E131,
E265, E266,
E305, E306,
E402,
E722, E741,
F401, F403, F811, F841,
# Some new flake8 ignores:
Expand All @@ -22,7 +23,6 @@ exclude =
.eggs

per-file-ignores =
setup.py: E402
setupext.py: E302, E501

tools/compare_backend_driver_results.py: E501
Expand All @@ -33,7 +33,7 @@ per-file-ignores =
matplotlib/backend_bases.py: E225
matplotlib/backends/_backend_tk.py: E203, E222, E225, E231, E271, E301, E303, E401, E501, E701
matplotlib/backends/backend_agg.py: E261, E302, E303, E701
matplotlib/backends/backend_cairo.py: E203, E221, E261, E303, E402, E711
matplotlib/backends/backend_cairo.py: E203, E221, E261, E303, E711
matplotlib/backends/backend_gtk3.py: E203, E221, E222, E225, E251, E261, E501
matplotlib/backends/backend_macosx.py: E231, E261
matplotlib/backends/backend_pgf.py: E303, E731
Expand All @@ -45,15 +45,15 @@ per-file-ignores =
matplotlib/font_manager.py: E203, E221, E251, E261, E262, E302, E501
matplotlib/fontconfig_pattern.py: E201, E203, E221, E222, E225, E302
matplotlib/legend_handler.py: E201, E501
matplotlib/mathtext.py: E201, E202, E203, E211, E221, E222, E225, E231, E251, E261, E301, E302, E303, E402, E501
matplotlib/mathtext.py: E201, E202, E203, E211, E221, E222, E225, E231, E251, E261, E301, E302, E303, E501
matplotlib/patheffects.py: E231
matplotlib/projections/geo.py: E203, E221, E231, E261, E502
matplotlib/pylab.py: E501
matplotlib/pyplot.py: E201, E202, E221, E222, E225, E231, E251, E261, E302, E501, E701
matplotlib/rcsetup.py: E203, E225, E261, E302, E501
matplotlib/sphinxext/mathmpl.py: E302
matplotlib/sphinxext/only_directives.py: E302
matplotlib/sphinxext/plot_directive.py: E261, E302, E402
matplotlib/sphinxext/plot_directive.py: E261, E302
matplotlib/tests/test_image.py: E225, E231, E251, E302, E501
matplotlib/tests/test_lines.py: E231, E261
matplotlib/tests/test_mathtext.py: E261, E501
Expand All @@ -64,7 +64,7 @@ per-file-ignores =
mpl_toolkits/__init__.py: E261
mpl_toolkits/axes_grid/axes_divider.py: E501
mpl_toolkits/axes_grid/axes_rgb.py: E302, E501
mpl_toolkits/axes_grid1/axes_divider.py: E402, E501
mpl_toolkits/axes_grid1/axes_divider.py: E501
mpl_toolkits/axes_grid1/axes_grid.py: E225
mpl_toolkits/axes_grid1/axes_rgb.py: E231
mpl_toolkits/axes_grid1/axes_size.py: E261, E501
Expand All @@ -73,211 +73,104 @@ per-file-ignores =
mpl_toolkits/axes_grid1/mpl_axes.py: E303, E501
mpl_toolkits/axes_grid1/parasite_axes.py: E225, E231, E302, E303, E501
mpl_toolkits/axisartist/angle_helper.py: E201, E203, E221, E222, E225, E231, E251, E261, E262, E302, E303, E501
mpl_toolkits/axisartist/axis_artist.py: E201, E202, E221, E225, E228, E231, E251, E261, E262, E302, E303, E402, E501, E701, E711
mpl_toolkits/axisartist/axis_artist.py: E201, E202, E221, E225, E228, E231, E251, E261, E262, E302, E303, E501, E701, E711
mpl_toolkits/axisartist/axisline_style.py: E231, E261, E262, E302, E303
mpl_toolkits/axisartist/axislines.py: E225, E231, E261, E303, E501
mpl_toolkits/axisartist/clip_path.py: E225, E302, E303, E501
mpl_toolkits/axisartist/floating_axes.py: E225, E231, E261, E262, E302, E303, E402, E501
mpl_toolkits/axisartist/grid_finder.py: E231, E261, E302, E303, E402
mpl_toolkits/axisartist/floating_axes.py: E225, E231, E261, E262, E302, E303, E501
mpl_toolkits/axisartist/grid_finder.py: E231, E261, E302, E303,
mpl_toolkits/axisartist/grid_helper_curvelinear.py: E225, E231, E261, E262, E271, E302, E303, E501
mpl_toolkits/mplot3d/art3d.py: E203, E222, E225, E231
mpl_toolkits/mplot3d/axes3d.py: E203, E231, E402, E501, E701
mpl_toolkits/mplot3d/axes3d.py: E203, E231, E501, E701
mpl_toolkits/mplot3d/axis3d.py: E231, E302
mpl_toolkits/mplot3d/proj3d.py: E231, E302, E303
mpl_toolkits/tests/test_axes_grid1.py: E201, E202
mpl_toolkits/tests/test_mplot3d.py: E231, E302

doc/conf.py: E402, E501
doc/conf.py: E501
doc/sphinxext/github.py: E302, E501
doc/sphinxext/math_symbol_table.py: E302, E501
doc/sphinxext/skip_deprecated.py: E302
doc/users/generate_credits.py: E302, E501
tutorials/advanced/path_tutorial.py: E402, E501
tutorials/advanced/patheffects_guide.py: E402, E501
tutorials/advanced/transforms_tutorial.py: E402, E501
tutorials/advanced/path_tutorial.py: E501
tutorials/advanced/patheffects_guide.py: E501
tutorials/advanced/transforms_tutorial.py: E501
tutorials/colors/colormaps.py: E501
tutorials/colors/colors.py: E402
tutorials/intermediate/artists.py: E402, E501
tutorials/intermediate/constrainedlayout_guide.py: E402, E501
tutorials/intermediate/gridspec.py: E402, E501
tutorials/intermediate/legend_guide.py: E402, E501
tutorials/intermediate/tight_layout_guide.py: E402, E501
tutorials/intermediate/artists.py: E501
tutorials/intermediate/constrainedlayout_guide.py: E501
tutorials/intermediate/gridspec.py: E501
tutorials/intermediate/legend_guide.py: E501
tutorials/intermediate/tight_layout_guide.py: E501
tutorials/introductory/customizing.py: E501
tutorials/introductory/images.py: E402, E501
tutorials/introductory/pyplot.py: E402, E501
tutorials/introductory/images.py: E501
tutorials/introductory/pyplot.py: E501
tutorials/introductory/sample_plots.py: E501
tutorials/introductory/usage.py: E402, E501
tutorials/introductory/usage.py: E501
tutorials/text/annotations.py: E501
tutorials/text/mathtext.py: E501
tutorials/text/pgf.py: E501
tutorials/text/text_intro.py: E402
tutorials/text/text_props.py: E501
tutorials/text/usetex.py: E501
tutorials/toolkits/axes_grid.py: E501
tutorials/toolkits/axisartist.py: E501

examples/animation/frame_grabbing_sgskip.py: E402
examples/axes_grid1/inset_locator_demo.py: E402
examples/axisartist/demo_curvelinear_grid.py: E402
examples/color/color_by_yvalue.py: E402
examples/color/color_cycle_default.py: E402
examples/color/color_cycler.py: E402
examples/color/color_demo.py: E402
examples/color/colorbar_basics.py: E402
examples/color/colormap_reference.py: E402
examples/color/named_colors.py: E402
examples/event_handling/data_browser.py: E501
examples/event_handling/path_editor.py: E501
examples/event_handling/pick_event_demo.py: E501
examples/event_handling/poly_editor.py: E501
examples/event_handling/viewlims.py: E501
examples/images_contours_and_fields/affine_image.py: E402
examples/images_contours_and_fields/barb_demo.py: E402, E501
examples/images_contours_and_fields/barcode_demo.py: E402
examples/images_contours_and_fields/contour_corner_mask.py: E402
examples/images_contours_and_fields/contour_demo.py: E402, E501
examples/images_contours_and_fields/contour_image.py: E402
examples/images_contours_and_fields/contourf_demo.py: E402, E501
examples/images_contours_and_fields/contourf_hatching.py: E402
examples/images_contours_and_fields/contourf_log.py: E402
examples/images_contours_and_fields/custom_cmap.py: E402
examples/images_contours_and_fields/demo_bboximage.py: E402
examples/images_contours_and_fields/image_clip_path.py: E402
examples/images_contours_and_fields/image_demo.py: E402
examples/images_contours_and_fields/image_masked.py: E402
examples/images_contours_and_fields/image_transparency_blend.py: E402
examples/images_contours_and_fields/image_zcoord.py: E402
examples/images_contours_and_fields/interpolation_methods.py: E402
examples/images_contours_and_fields/irregulardatagrid.py: E402
examples/images_contours_and_fields/layer_images.py: E402
examples/images_contours_and_fields/matshow.py: E402
examples/images_contours_and_fields/multi_image.py: E402
examples/images_contours_and_fields/pcolor_demo.py: E402
examples/images_contours_and_fields/plot_streamplot.py: E402
examples/images_contours_and_fields/quadmesh_demo.py: E402
examples/images_contours_and_fields/quiver_demo.py: E402
examples/images_contours_and_fields/quiver_simple_demo.py: E402
examples/images_contours_and_fields/shading_example.py: E402, E501
examples/images_contours_and_fields/specgram_demo.py: E402, E501
examples/images_contours_and_fields/spy_demos.py: E402
examples/images_contours_and_fields/tricontour_demo.py: E201, E402
examples/images_contours_and_fields/tricontour_smooth_delaunay.py: E402
examples/images_contours_and_fields/tricontour_smooth_user.py: E402
examples/images_contours_and_fields/trigradient_demo.py: E402
examples/images_contours_and_fields/triinterp_demo.py: E402
examples/images_contours_and_fields/tripcolor_demo.py: E201, E402
examples/images_contours_and_fields/triplot_demo.py: E201, E402
examples/images_contours_and_fields/watermark_image.py: E402
examples/lines_bars_and_markers/fill_between_demo.py: E402
examples/lines_bars_and_markers/filled_step.py: E402
examples/lines_bars_and_markers/joinstyle.py: E402
examples/lines_bars_and_markers/scatter_piecharts.py: E402
examples/lines_bars_and_markers/span_regions.py: E402
examples/misc/agg_oo_sgskip.py: E402
examples/images_contours_and_fields/barb_demo.py: E501
examples/images_contours_and_fields/contour_demo.py: E501
examples/images_contours_and_fields/contourf_demo.py: E501
examples/images_contours_and_fields/shading_example.py: E501
examples/images_contours_and_fields/specgram_demo.py: E501
examples/images_contours_and_fields/tricontour_demo.py: E201
examples/images_contours_and_fields/tripcolor_demo.py: E201
examples/images_contours_and_fields/triplot_demo.py: E201
examples/misc/anchored_artists.py: E501
examples/misc/contour_manual.py: E501
examples/misc/font_indexing.py: E501
examples/misc/ftface_props.py: E501
examples/misc/histogram_path.py: E402
examples/misc/print_stdout_sgskip.py: E402
examples/misc/svg_filter_line.py: E402, E501
examples/misc/svg_filter_pie.py: E402, E501
examples/misc/svg_filter_line.py: E501
examples/misc/svg_filter_pie.py: E501
examples/misc/table_demo.py: E201
examples/mplot3d/voxels.py: E501
examples/mplot3d/wire3d_zero_stride.py: E501
examples/pie_and_polar_charts/nested_pie.py: E402
examples/pie_and_polar_charts/pie_and_donut_labels.py: E402
examples/pie_and_polar_charts/pie_demo2.py: E402
examples/pie_and_polar_charts/pie_features.py: E402
examples/pie_and_polar_charts/polar_bar.py: E402
examples/pie_and_polar_charts/polar_demo.py: E402
examples/pie_and_polar_charts/polar_legend.py: E402
examples/pie_and_polar_charts/polar_scatter.py: E402
examples/pyplots/align_ylabels.py: E402
examples/pyplots/annotate_transform.py: E228, E251, E402, E501
examples/pyplots/annotation_basic.py: E402
examples/pyplots/annotation_polar.py: E231, E402
examples/pyplots/auto_subplots_adjust.py: E231, E261, E302, E402
examples/pyplots/boxplot_demo_pyplot.py: E231, E402
examples/pyplots/annotate_transform.py: E228, E251, E501
examples/pyplots/annotation_polar.py: E231
examples/pyplots/auto_subplots_adjust.py: E231, E261, E302
examples/pyplots/boxplot_demo_pyplot.py: E231
examples/pyplots/compound_path_demo.py: E231
examples/pyplots/dollar_ticks.py: E402
examples/pyplots/fig_axes_customize_simple.py: E261, E402
examples/pyplots/fig_axes_labels_simple.py: E402
examples/pyplots/fig_x.py: E402
examples/pyplots/pyplot_formatstr.py: E231, E402
examples/pyplots/pyplot_mathtext.py: E231, E402
examples/pyplots/pyplot_scales.py: E402
examples/pyplots/fig_axes_customize_simple.py: E261
examples/pyplots/pyplot_formatstr.py: E231
examples/pyplots/pyplot_mathtext.py: E231
examples/pyplots/pyplot_simple.py: E231
examples/pyplots/pyplot_simple.py: E402
examples/pyplots/pyplot_text.py: E402
examples/pyplots/pyplot_three.py: E402
examples/pyplots/pyplot_two_subplots.py: E302, E402
examples/pyplots/text_commands.py: E231, E402
examples/pyplots/text_layout.py: E231, E402
examples/pyplots/whats_new_1_subplot3d.py: E402
examples/pyplots/whats_new_98_4_fancy.py: E225, E261, E302, E402
examples/pyplots/whats_new_98_4_fill_between.py: E225, E402
examples/pyplots/whats_new_98_4_legend.py: E228, E402
examples/pyplots/whats_new_99_axes_grid.py: E402
examples/pyplots/whats_new_99_mplot3d.py: E402
examples/pyplots/whats_new_99_spines.py: E231, E261, E402
examples/pyplots/pyplot_two_subplots.py: E302
examples/pyplots/text_commands.py: E231
examples/pyplots/text_layout.py: E231
examples/pyplots/whats_new_98_4_fancy.py: E225, E261, E302
examples/pyplots/whats_new_98_4_fill_between.py: E225
examples/pyplots/whats_new_98_4_legend.py: E228
examples/pyplots/whats_new_99_spines.py: E231, E261
examples/recipes/placing_text_boxes.py: E501
examples/scales/power_norm.py: E402
examples/shapes_and_collections/artist_reference.py: E402
examples/shapes_and_collections/collections.py: E402
examples/shapes_and_collections/compound_path.py: E402
examples/shapes_and_collections/dolphin.py: E402, E501
examples/shapes_and_collections/donut.py: E402
examples/shapes_and_collections/ellipse_collection.py: E402
examples/shapes_and_collections/ellipse_demo.py: E402
examples/shapes_and_collections/fancybox_demo.py: E402
examples/shapes_and_collections/hatch_demo.py: E402
examples/shapes_and_collections/line_collection.py: E402
examples/shapes_and_collections/marker_path.py: E402
examples/shapes_and_collections/patch_collection.py: E402
examples/shapes_and_collections/path_patch.py: E402, E501
examples/shapes_and_collections/quad_bezier.py: E402
examples/shapes_and_collections/scatter.py: E402
examples/shapes_and_collections/dolphin.py: E501
examples/shapes_and_collections/path_patch.py: E501
examples/showcase/firefox.py: E501
examples/specialty_plots/anscombe.py: E402, E501
examples/specialty_plots/radar_chart.py: E402
examples/specialty_plots/sankey_basics.py: E402, E501
examples/specialty_plots/sankey_links.py: E402
examples/specialty_plots/sankey_rankine.py: E402
examples/specialty_plots/skewt.py: E402
examples/specialty_plots/anscombe.py: E501
examples/specialty_plots/sankey_basics.py: E501
examples/statistics/boxplot_demo.py: E501
examples/style_sheets/bmh.py: E501
examples/style_sheets/ggplot.py: E501
examples/style_sheets/plot_solarizedlight2.py: E501
examples/subplots_axes_and_figures/axes_margins.py: E402
examples/subplots_axes_and_figures/axes_zoom_effect.py: E402
examples/subplots_axes_and_figures/demo_tight_layout.py: E402
examples/subplots_axes_and_figures/two_scales.py: E402
examples/tests/backend_driver_sgskip.py: E402, E501
examples/tests/backend_driver_sgskip.py: E501
examples/text_labels_and_annotations/annotation_demo.py: E501
examples/text_labels_and_annotations/custom_legends.py: E402
examples/text_labels_and_annotations/font_family_rc_sgskip.py: E402
examples/text_labels_and_annotations/font_file.py: E402
examples/text_labels_and_annotations/legend.py: E402
examples/text_labels_and_annotations/line_with_text.py: E402
examples/text_labels_and_annotations/mathtext_asarray.py: E402
examples/text_labels_and_annotations/tex_demo.py: E402
examples/text_labels_and_annotations/watermark_text.py: E402
examples/ticks_and_spines/auto_ticks.py: E501
examples/user_interfaces/embedding_in_gtk3_panzoom_sgskip.py: E402
examples/user_interfaces/embedding_in_gtk3_sgskip.py: E402
examples/user_interfaces/embedding_in_qt_sgskip.py: E402
examples/user_interfaces/embedding_in_wx2_sgskip.py: E501
examples/user_interfaces/embedding_in_wx3_sgskip.py: E501
examples/user_interfaces/embedding_in_wx4_sgskip.py: E501
examples/user_interfaces/embedding_in_wx5_sgskip.py: E501
examples/user_interfaces/embedding_webagg_sgskip.py: E501
examples/user_interfaces/gtk_spreadsheet_sgskip.py: E402
examples/user_interfaces/mathtext_wx_sgskip.py: E402, E501
examples/user_interfaces/mpl_with_glade3_sgskip.py: E402
examples/user_interfaces/pylab_with_gtk_sgskip.py: E402, E501
examples/user_interfaces/toolmanager_sgskip.py: E402
examples/userdemo/custom_boxstyle01.py: E402
examples/userdemo/pgf_preamble_sgskip.py: E402
examples/user_interfaces/mathtext_wx_sgskip.py: E501
examples/user_interfaces/pylab_with_gtk_sgskip.py: E501
examples/userdemo/simple_annotate01.py: E501
examples/widgets/rectangle_selector.py: E501