diff --git a/pyproject.toml b/pyproject.toml index 0dce98ff61f..90f92110458 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -245,15 +245,8 @@ extend-exclude = [ "doc", "_typed_ops.pyi", ] -extend-safe-fixes = [ - "TID252", # absolute imports -] target-version = "py39" -[tool.ruff.per-file-ignores] -# don't enforce absolute imports -"asv_bench/**" = ["TID252"] - [tool.ruff.lint] # E402: module level import not at top of file # E501: line too long - let black worry about that @@ -271,6 +264,13 @@ select = [ "I", # isort "UP", # Pyupgrade ] +extend-safe-fixes = [ + "TID252", # absolute imports +] + +[tool.ruff.lint.per-file-ignores] +# don't enforce absolute imports +"asv_bench/**" = ["TID252"] [tool.ruff.lint.isort] known-first-party = ["xarray"]