Skip to content

Commit d75829b

Browse files
committed
pyproject: Use future annotations
1 parent 0aa1c5d commit d75829b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,25 @@ select = [
192192
"PERF", # Perflint
193193
"RUF", # Ruff-specific rules
194194
"D", # pydocstyle
195+
"FA100", # future annotations
195196
]
196197
ignore = [
197198
"COM812", # missing trailing comma, ruff format conflict
198199
]
200+
extend-safe-fixes = [
201+
"UP006",
202+
"UP007",
203+
]
204+
pyupgrade.keep-runtime-typing = false
199205

200206
[tool.ruff.lint.isort]
201207
known-first-party = [
202208
"tmuxp",
203209
]
204210
combine-as-imports = true
211+
required-imports = [
212+
"from __future__ import annotations",
213+
]
205214

206215
[tool.ruff.lint.pydocstyle]
207216
convention = "numpy"

0 commit comments

Comments
 (0)