Skip to content

Commit 98a1fdb

Browse files
committed
Clean up unused ruff config
ruff uses `project.requires-python`, so the ruff-only `target-version` is not needed. Other exceptions can be dropped since they are all clear of warnings.
1 parent 3c4ff7f commit 98a1fdb

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

pyproject.toml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,13 @@ sections = "FUTURE,STDLIB,THIRDPARTY,PYDATA,FIRSTPARTY,LOCALFOLDER"
9393
force_sort_within_sections = true
9494

9595
[tool.ruff]
96-
exclude = [
97-
".git",
96+
extend-exclude = [
9897
"build",
9998
"doc/gallery",
10099
"doc/tutorials",
101100
"tools/gh_api.py",
102-
".tox",
103-
".eggs",
104101
]
105102
line-length = 88
106-
target-version = "py311"
107103

108104
[tool.ruff.lint]
109105
ignore = [
@@ -129,9 +125,7 @@ ignore = [
129125
"D404",
130126
"D413",
131127
"D415",
132-
"D416",
133128
"D417",
134-
"E24",
135129
"E266",
136130
"E305",
137131
"E306",
@@ -174,14 +168,11 @@ convention = "numpy"
174168
"*.pyi" = ["E501"]
175169
"*.ipynb" = ["E402"]
176170
"doc/conf.py" = ["E402"]
177-
"galleries/examples/animation/frame_grabbing_sgskip.py" = ["E402"]
178171
"galleries/examples/images_contours_and_fields/tricontour_demo.py" = ["E201"]
179172
"galleries/examples/images_contours_and_fields/tripcolor_demo.py" = ["E201"]
180173
"galleries/examples/images_contours_and_fields/triplot_demo.py" = ["E201"]
181174
"galleries/examples/lines_bars_and_markers/marker_reference.py" = ["E402"]
182-
"galleries/examples/misc/print_stdout_sgskip.py" = ["E402"]
183175
"galleries/examples/misc/table_demo.py" = ["E201"]
184-
"galleries/examples/style_sheets/bmh.py" = ["E501"]
185176
"galleries/examples/subplots_axes_and_figures/demo_constrained_layout.py" = ["E402"]
186177
"galleries/examples/text_labels_and_annotations/custom_legends.py" = ["E402"]
187178
"galleries/examples/ticks/date_concise_formatter.py" = ["E402"]
@@ -210,11 +201,9 @@ convention = "numpy"
210201
"lib/mpl_toolkits/axisartist/angle_helper.py" = ["E221"]
211202
"lib/mpl_toolkits/mplot3d/proj3d.py" = ["E201"]
212203

213-
"galleries/users_explain/artists/paths.py" = ["E402"]
214204
"galleries/users_explain/quick_start.py" = ["E402"]
215205
"galleries/users_explain/artists/patheffects_guide.py" = ["E402"]
216-
"galleries/users_explain/artists/transforms_tutorial.py" = ["E402", "E501"]
217-
"galleries/users_explain/colors/colormaps.py" = ["E501"]
206+
"galleries/users_explain/artists/transforms_tutorial.py" = ["E402"]
218207
"galleries/users_explain/colors/colors.py" = ["E402"]
219208
"galleries/tutorials/artists.py" = ["E402"]
220209
"galleries/users_explain/axes/constrainedlayout_guide.py" = ["E402"]
@@ -224,7 +213,6 @@ convention = "numpy"
224213
"galleries/tutorials/images.py" = ["E501"]
225214
"galleries/tutorials/pyplot.py" = ["E402", "E501"]
226215
"galleries/users_explain/text/annotations.py" = ["E402", "E501"]
227-
"galleries/users_explain/text/mathtext.py" = ["E501"]
228216
"galleries/users_explain/text/text_intro.py" = ["E402"]
229217
"galleries/users_explain/text/text_props.py" = ["E501"]
230218

0 commit comments

Comments
 (0)