Skip to content

Commit

Permalink
ruff: move some config to lint section (#8727)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause authored Feb 9, 2024
1 parent 0ad7fa7 commit f343b7b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
Expand Down

0 comments on commit f343b7b

Please sign in to comment.