Skip to content

Commit f6ba2ef

Browse files
committed
MNT: Update ruff config to 0.2.0
This release deprecated some locations for settings, and moved them into different TOML tables.
1 parent a04e35f commit f6ba2ef

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ exclude = [
112112
".tox",
113113
".eggs",
114114
]
115+
line-length = 88
116+
target-version = "py310"
117+
118+
[tool.ruff.lint]
115119
ignore = [
116120
"D100",
117121
"D101",
@@ -132,15 +136,14 @@ ignore = [
132136
"E741",
133137
"F841",
134138
]
135-
line-length = 88
136139
select = [
137140
"D",
138141
"E",
139142
"F",
140143
"W",
141144
]
142145

143-
# The following error codes are not supported by ruff v0.0.240
146+
# The following error codes are not supported by ruff v0.2.0
144147
# They are planned and should be selected once implemented
145148
# even if they are deselected by default.
146149
# These are primarily whitespace/corrected by autoformatters (which we don't use).
@@ -158,12 +161,10 @@ external = [
158161
"E703",
159162
]
160163

161-
target-version = "py310"
162-
163-
[tool.ruff.pydocstyle]
164+
[tool.ruff.lint.pydocstyle]
164165
convention = "numpy"
165166

166-
[tool.ruff.per-file-ignores]
167+
[tool.ruff.lint.per-file-ignores]
167168
"doc/conf.py" = ["E402"]
168169
"galleries/examples/animation/frame_grabbing_sgskip.py" = ["E402"]
169170
"galleries/examples/lines_bars_and_markers/marker_reference.py" = ["E402"]

0 commit comments

Comments
 (0)