Skip to content

Commit 7e6bafa

Browse files
committed
pyproject: Use future annotations
1 parent dd45294 commit 7e6bafa

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
@@ -201,10 +201,16 @@ select = [
201201
"PERF", # Perflint
202202
"RUF", # Ruff-specific rules
203203
"D", # pydocstyle
204+
"FA100", # future annotations
204205
]
205206
ignore = [
206207
"COM812", # missing trailing comma, ruff format conflict
207208
]
209+
extend-safe-fixes = [
210+
"UP006",
211+
"UP007",
212+
]
213+
pyupgrade.keep-runtime-typing = false
208214

209215
[tool.ruff.lint.pydocstyle]
210216
convention = "numpy"
@@ -214,6 +220,9 @@ known-first-party = [
214220
"vcspull",
215221
]
216222
combine-as-imports = true
223+
required-imports = [
224+
"from __future__ import annotations",
225+
]
217226

218227
[tool.ruff.lint.per-file-ignores]
219228
"*/__init__.py" = ["F401"]

0 commit comments

Comments
 (0)