Skip to content
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

Add autofix for D300 #7967

Merged
merged 4 commits into from
Oct 17, 2023
Merged

Add autofix for D300 #7967

merged 4 commits into from
Oct 17, 2023

Conversation

diceroll123
Copy link
Contributor

@diceroll123 diceroll123 commented Oct 15, 2023

Summary

Add fix for D300

Test Plan

cargo test and manually

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2023

PR Check Results

Ecosystem

ℹ️ ecosystem check detected changes. (+1469, -1469, 0 error(s))

bokeh (+1469, -1469)

- [*] 17800 fixable with the `--fix` option (4369 hidden fixes can be enabled with the `--unsafe-fixes` option).
+ [*] 19268 fixable with the `--fix` option (4369 hidden fixes can be enabled with the `--unsafe-fixes` option).
- examples/basic/annotations/arrow.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/arrow.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/arrowheads.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/arrowheads.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/band.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/band.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/box_annotation.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/box_annotation.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/colorbar_log.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/colorbar_log.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/label.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/label.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/legend.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/legend.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/legend_two_dimensions.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/legend_two_dimensions.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/legends_item_visibility.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/legends_item_visibility.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/slope.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/slope.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/annotations/whisker.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/annotations/whisker.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/areas/stacked_area.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/areas/stacked_area.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/axes/logplot.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/axes/logplot.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/axes/twin_axes.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/axes/twin_axes.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/basic.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/basic.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/colormapped.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/colormapped.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/colors.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/colors.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/dodged.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/dodged.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/intervals.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/intervals.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/mixed.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/mixed.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/nested.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/nested.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/nested_colormapped.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/nested_colormapped.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/pandas_groupby_colormapped.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/pandas_groupby_colormapped.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/pandas_groupby_nested.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/pandas_groupby_nested.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/sorted.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/sorted.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/stacked.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/stacked.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/stacked_grouped.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/stacked_grouped.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/bars/stacked_split.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/bars/stacked_split.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/data/color_mappers.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/data/color_mappers.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/data/transform_jitter.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/data/transform_jitter.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/data/transform_markers.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/data/transform_markers.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/layouts/anscombe.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/layouts/anscombe.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/layouts/grid.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/layouts/grid.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/lines/arcs.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/lines/arcs.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/lines/line_single.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/lines/line_single.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/lines/lorenz.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/lines/lorenz.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/scatters/color_scatter.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/scatters/color_scatter.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/scatters/elements.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/scatters/elements.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/scatters/image_url.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/scatters/image_url.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/basic/scatters/markers.py:1:1: D300 Use triple double quotes `"""`
+ examples/basic/scatters/markers.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/js_callbacks/color_sliders.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/js_callbacks/color_sliders.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/js_callbacks/customjs_for_hover.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/js_callbacks/customjs_for_hover.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/js_callbacks/customjs_for_selection.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/js_callbacks/customjs_for_selection.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/js_callbacks/setvalue.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/js_callbacks/setvalue.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/js_callbacks/slider.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/js_callbacks/slider.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/js_callbacks/slider_callback_policy.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/js_callbacks/slider_callback_policy.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/legends/legend_hide.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/legends/legend_hide.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/linking/linked_brushing.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/linking/linked_brushing.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/linking/linked_panning.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/linking/linked_panning.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/tools/range_tool.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/tools/range_tool.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/tooltips/tooltip_content.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/tooltips/tooltip_content.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/interaction/tooltips/tooltip_description.py:1:1: D300 Use triple double quotes `"""`
+ examples/interaction/tooltips/tooltip_description.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/basic_plot.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/basic_plot.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/buttons.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/buttons.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/calendars.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/calendars.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/colors.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/colors.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/daylight.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/daylight.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/latex_labels.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/latex_labels.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/legends.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/legends.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/maps_cities.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/maps_cities.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/sliders.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/sliders.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/tile_source.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/tile_source.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/toolbars.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/toolbars.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/toolbars2.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/toolbars2.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/transform_jitter.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/transform_jitter.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/twin_axis.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/twin_axis.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/models/widgets.py:1:1: D300 Use triple double quotes `"""`
+ examples/models/widgets.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/output/apis/server_document/bokeh_server.py:3:1: D300 Use triple double quotes `"""`
+ examples/output/apis/server_document/bokeh_server.py:3:1: D300 [*] Use triple double quotes `"""`
- examples/output/apis/server_document/flask_server.py:1:1: D300 Use triple double quotes `"""`
+ examples/output/apis/server_document/flask_server.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/output/webgl/clustering.py:1:1: D300 Use triple double quotes `"""`
+ examples/output/webgl/clustering.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/airports_map.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/airports_map.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/aspect.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/aspect.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/brewer.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/brewer.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/checkout_form.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/checkout_form.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/custom_tooltip.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/custom_tooltip.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/customjs_expr.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/customjs_expr.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/customjs_hover.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/customjs_hover.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/dotplot.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/dotplot.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/filtering.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/filtering.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/histogram.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/histogram.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/hover.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/hover.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/image_alpha.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/image_alpha.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/interactive_legend.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/interactive_legend.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/iris.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/iris.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/multi_legend.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/multi_legend.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/multi_line.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/multi_line.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/multi_scale.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/multi_scale.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/periodic_shells.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/periodic_shells.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/polar.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/polar.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/rect.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/rect.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/ridgeplot_subcoordinates.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/ridgeplot_subcoordinates.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/scatter_selection.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/scatter_selection.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/sprint.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/sprint.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/stocks.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/stocks.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/tap.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/tap.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/text.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/text.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/theme_glyphs.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/theme_glyphs.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/toolbar_autohide.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/toolbar_autohide.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/trefoil.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/trefoil.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/plotting/us_marriages_divorces_hover.py:1:1: D300 Use triple double quotes `"""`
+ examples/plotting/us_marriages_divorces_hover.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/clustering/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/clustering/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/contour_animated.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/contour_animated.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/crossfilter/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/crossfilter/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/dash/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/dash/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/duffing_oscillator.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/duffing_oscillator.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/export_csv/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/export_csv/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/faces/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/faces/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/gapminder/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/gapminder/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/image_blur.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/image_blur.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/movies/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/movies/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/ohlc/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/ohlc/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/population.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/population.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/selection_histogram.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/selection_histogram.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/server_auth/app.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/server_auth/app.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/server_auth/auth.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/server_auth/auth.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/simple_hdf5/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/simple_hdf5/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/sliders.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/sliders.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/spectrogram/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/spectrogram/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/surface3d/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/surface3d/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/taylor.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/taylor.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/server/app/weather/main.py:1:1: D300 Use triple double quotes `"""`
+ examples/server/app/weather/main.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/mathtext/latex_axis_labels_titles_labels.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/mathtext/latex_axis_labels_titles_labels.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/mathtext/latex_bessel.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/mathtext/latex_bessel.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/mathtext/latex_blackbody_radiation.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/mathtext/latex_blackbody_radiation.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/mathtext/latex_div_widget.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/mathtext/latex_div_widget.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/mathtext/latex_normal_distribution.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/mathtext/latex_normal_distribution.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/mathtext/latex_schrodinger.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/mathtext/latex_schrodinger.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/mathtext/latex_slider_widget_title.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/mathtext/latex_slider_widget_title.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/mathtext/latex_tick_labels.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/mathtext/latex_tick_labels.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/mathtext/mathml_axis_labels.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/mathtext/mathml_axis_labels.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/styling/plots/hatch_grid_band.py:1:1: D300 Use triple double quotes `"""`
+ examples/styling/plots/hatch_grid_band.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/categorical/correlogram.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/categorical/correlogram.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/categorical/heatmap_unemployment.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/categorical/heatmap_unemployment.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/categorical/les_mis.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/categorical/les_mis.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/categorical/periodic.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/categorical/periodic.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/categorical/ridgeplot.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/categorical/ridgeplot.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/categorical/scatter_jitter.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/categorical/scatter_jitter.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/categorical/slope_graph.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/categorical/slope_graph.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/contour/contour.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/contour/contour.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/contour/contour_polar.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/contour/contour_polar.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/contour/contour_simple.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/contour/contour_simple.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/geo/choropleth.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/geo/choropleth.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/geo/eclipse.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/geo/eclipse.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/geo/texas_hover_map.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/geo/texas_hover_map.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/geo/tile_xyzservices.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/geo/tile_xyzservices.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/graph/from_networkx.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/graph/from_networkx.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/graph/node_and_edge_attributes.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/graph/node_and_edge_attributes.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/hex/hex_tile.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/hex/hex_tile.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/hex/hexbin.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/hex/hexbin.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/hierarchical/crosstab.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/hierarchical/crosstab.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/hierarchical/treemap.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/hierarchical/treemap.py:1:1: D300 [*] Use triple double quotes `"""`
- examples/topics/images/image.py:1:1: D300 Use triple double quotes `"""`
+ examples/topics/images/i

@diceroll123 diceroll123 changed the title add autofix for D300 add autofix for D300 Oct 16, 2023
Diagnostic::new(TripleSingleQuotes { expected_quote }, docstring.range());

diagnostic.set_fix(Fix::safe_edit(Edit::range_replacement(
prefixes + &format!("'''{}'''", docstring.body().as_str()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this always safe? Could this ever change the inner contents of the string?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ran it on the cpython source with --fix, looks fine, but I trust your judgement!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stand corrected, it breaks when confronted with this condition:

'''Ensure that the given "actual" string ends with "exp_end"'''

@charliermarsh charliermarsh added the fixes Related to suggested fixes for violations label Oct 17, 2023
@charliermarsh charliermarsh changed the title add autofix for D300 Add autofix for D300 Oct 17, 2023
@charliermarsh charliermarsh enabled auto-merge (squash) October 17, 2023 04:49
@diceroll123
Copy link
Contributor Author

diceroll123 commented Oct 17, 2023

Didn't want to commit with your automerge on, just in case 😅

EDIT: wow I'm blind, redid your example case.

@charliermarsh charliermarsh merged commit 8a52992 into astral-sh:main Oct 17, 2023
16 checks passed
@zanieb zanieb mentioned this pull request Oct 19, 2023
zanieb added a commit that referenced this pull request Oct 19, 2023
- Add changelog entry for 0.1.1
- Bump version to 0.1.1
- Require preview for fix added in #7967 
- Allow duplicate headings in changelog (markdownlint setting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixes Related to suggested fixes for violations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants