Skip to content

Commit b0a982e

Browse files
Rename ruff ruleset: TCHTC (#10373)
Ruff 0.8.0 changes the error codes for the rules in the flake8-type-checking category from TCH to TC. This matches changes that were made in the original flake8-type-checking plugin from which these rules were originally adapted. https://astral.sh/blog/ruff-v0.8.0#new-error-codes-for-flake8-type-checking-rules
1 parent 14221f5 commit b0a982e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ extend-select = [
124124
"RUF", # ruff checks
125125
"SIM", # flake8-simplify
126126
"T20", # flake8-print
127-
"TCH", # flake8-type-checking
127+
"TC", # flake8-type-checking
128128
"TID", # flake8-tidy-imports
129129
"UP", # pyupgrade
130130
]
@@ -133,7 +133,7 @@ ignore = [
133133
"B905", # use explicit 'strict=' parameter with 'zip()'
134134
]
135135
extend-safe-fixes = [
136-
"TCH", # move import from and to TYPE_CHECKING blocks
136+
"TC", # move import from and to TYPE_CHECKING blocks
137137
]
138138
unfixable = [
139139
"ERA", # do not autoremove commented out code

0 commit comments

Comments
 (0)