Skip to content

Commit

Permalink
chore: consider "TCH" as safe fix
Browse files Browse the repository at this point in the history
(cherry picked from commit 6c36e5a)
  • Loading branch information
radoering authored and neersighted committed Mar 24, 2024
1 parent 392adbf commit 765a7c3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ src = ["src"]
target-version = "py38"

[tool.ruff.lint]
unfixable = [
"ERA", # do not autoremove commented out code
]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
Expand All @@ -124,6 +121,12 @@ ignore = [
"B905", # use explicit 'strict=' parameter with 'zip()'
"N818", # Exception name should be named with an Error suffix
]
extend-safe-fixes = [
"TCH", # move import from and to TYPE_CHECKING blocks
]
unfixable = [
"ERA", # do not autoremove commented out code
]

[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
Expand Down

0 comments on commit 765a7c3

Please sign in to comment.