@@ -136,11 +136,22 @@ ignore = [
136136 " E741" ,
137137 " F841" ,
138138]
139+ preview = true
140+ explicit-preview-rules = true
139141select = [
140142 " D" ,
141143 " E" ,
142144 " F" ,
143145 " W" ,
146+ # The following error codes require the preview mode to be enabled.
147+ " E201" ,
148+ " E202" ,
149+ " E203" ,
150+ " E221" ,
151+ " E251" ,
152+ " E261" ,
153+ " E272" ,
154+ " E703" ,
144155]
145156
146157# The following error codes are not supported by ruff v0.2.0
@@ -150,15 +161,7 @@ select = [
150161# See https://github.com/charliermarsh/ruff/issues/2402 for status on implementation
151162external = [
152163 " E122" ,
153- " E201" ,
154- " E202" ,
155- " E203" ,
156- " E221" ,
157- " E251" ,
158- " E261" ,
159- " E272" ,
160164 " E302" ,
161- " E703" ,
162165]
163166
164167[tool .ruff .lint .pydocstyle ]
@@ -167,8 +170,12 @@ convention = "numpy"
167170[tool .ruff .lint .per-file-ignores ]
168171"doc/conf.py" = [" E402" ]
169172"galleries/examples/animation/frame_grabbing_sgskip.py" = [" E402" ]
173+ "galleries/examples/images_contours_and_fields/tricontour_demo.py" = [" E201" ]
174+ "galleries/examples/images_contours_and_fields/tripcolor_demo.py" = [" E201" ]
175+ "galleries/examples/images_contours_and_fields/triplot_demo.py" = [" E201" ]
170176"galleries/examples/lines_bars_and_markers/marker_reference.py" = [" E402" ]
171177"galleries/examples/misc/print_stdout_sgskip.py" = [" E402" ]
178+ "galleries/examples/misc/table_demo.py" = [" E201" ]
172179"galleries/examples/style_sheets/bmh.py" = [" E501" ]
173180"galleries/examples/subplots_axes_and_figures/demo_constrained_layout.py" = [" E402" ]
174181"galleries/examples/text_labels_and_annotations/custom_legends.py" = [" E402" ]
@@ -188,14 +195,22 @@ convention = "numpy"
188195"lib/matplotlib/__init__.py" = [" E402" , " F401" ]
189196"lib/matplotlib/_animation_data.py" = [" E501" ]
190197"lib/matplotlib/_api/__init__.py" = [" F401" ]
198+ "lib/matplotlib/_cm.py" = [" E202" , " E203" ]
199+ "lib/matplotlib/_mathtext.py" = [" E221" ]
200+ "lib/matplotlib/_mathtext_data.py" = [" E203" ]
191201"lib/matplotlib/axes/__init__.py" = [" F401" , " F403" ]
192202"lib/matplotlib/backends/backend_template.py" = [" F401" ]
193203"lib/matplotlib/font_manager.py" = [" E501" ]
194204"lib/matplotlib/image.py" = [" F401" , " F403" ]
195205"lib/matplotlib/pylab.py" = [" F401" , " F403" ]
196206"lib/matplotlib/pyplot.py" = [" F401" , " F811" ]
197207"lib/matplotlib/tests/test_mathtext.py" = [" E501" ]
208+ "lib/matplotlib/transforms.py" = [" E201" ]
209+ "lib/matplotlib/tri/_triinterpolate.py" = [" E201" , " E221" ]
210+ "lib/mpl_toolkits/axes_grid1/axes_size.py" = [" E272" ]
198211"lib/mpl_toolkits/axisartist/__init__.py" = [" F401" ]
212+ "lib/mpl_toolkits/axisartist/angle_helper.py" = [" E221" ]
213+ "lib/mpl_toolkits/mplot3d/proj3d.py" = [" E201" ]
199214"lib/pylab.py" = [" F401" , " F403" ]
200215
201216"galleries/users_explain/artists/paths.py" = [" E402" ]
0 commit comments