Skip to content

Commit f343b7b

Browse files
authored
ruff: move some config to lint section (#8727)
1 parent 0ad7fa7 commit f343b7b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,8 @@ extend-exclude = [
245245
"doc",
246246
"_typed_ops.pyi",
247247
]
248-
extend-safe-fixes = [
249-
"TID252", # absolute imports
250-
]
251248
target-version = "py39"
252249

253-
[tool.ruff.per-file-ignores]
254-
# don't enforce absolute imports
255-
"asv_bench/**" = ["TID252"]
256-
257250
[tool.ruff.lint]
258251
# E402: module level import not at top of file
259252
# E501: line too long - let black worry about that
@@ -271,6 +264,13 @@ select = [
271264
"I", # isort
272265
"UP", # Pyupgrade
273266
]
267+
extend-safe-fixes = [
268+
"TID252", # absolute imports
269+
]
270+
271+
[tool.ruff.lint.per-file-ignores]
272+
# don't enforce absolute imports
273+
"asv_bench/**" = ["TID252"]
274274

275275
[tool.ruff.lint.isort]
276276
known-first-party = ["xarray"]

0 commit comments

Comments
 (0)