Skip to content

Commit

Permalink
Enable some Ruff TC rules (flake8-type-checking) (#13333)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Jan 2, 2025
1 parent a540f78 commit 0cebf26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ select = [
"W", # pycodestyle Warning
# Only include flake8-annotations rules that are autofixable. Otherwise leave this to mypy+pyright
"ANN2",
# Don't include TC rules that create a TYPE_CHECKING block or stringifies annotations
"TC004", # Move import `{qualified_name}` out of type-checking block. Import is used for more than type hinting.
"TC005", # Found empty type-checking block
# "TC008", # TODO: Enable when out of preview
"TC010", # Invalid string member in `X | Y`-style union type
# Most refurb rules are in preview and can be opinionated,
# consider them individually as they come out of preview (last check: 0.8.4)
"FURB105", # Unnecessary empty string passed to `print`
Expand Down

0 comments on commit 0cebf26

Please sign in to comment.