Skip to content

Commit b4bb2dc

Browse files
authored
style(ruff): add UP and TC fixes to the safe fixes list (#1767)
1 parent d46e49c commit b4bb2dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ select = [
229229
"TC006",
230230
]
231231
ignore = ["E501", "D1", "D415"]
232+
extend-safe-fixes = [
233+
"TC", # Move imports inside/outside TYPE_CHECKING blocks
234+
"UP", # Update syntaxes for current Python version recommendations
235+
]
232236

233237
[tool.ruff.lint.per-file-ignores]
234238
"tests/*" = ["ANN", "S101"]

0 commit comments

Comments
 (0)