Skip to content

Commit e1e5759

Browse files
committed
pyproject: Use future annotations
1 parent 11446bb commit e1e5759

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
@@ -195,16 +195,25 @@ select = [
195195
"PERF", # Perflint
196196
"RUF", # Ruff-specific rules
197197
"D", # pydocstyle
198+
"FA100", # future annotations
198199
]
199200
ignore = [
200201
"COM812", # missing trailing comma, ruff format conflict
201202
]
203+
extend-safe-fixes = [
204+
"UP006",
205+
"UP007",
206+
]
207+
pyupgrade.keep-runtime-typing = false
202208

203209
[tool.ruff.lint.isort]
204210
known-first-party = [
205211
"django_docutils",
206212
]
207213
combine-as-imports = true
214+
required-imports = [
215+
"from __future__ import annotations",
216+
]
208217

209218
[tool.ruff.lint.pydocstyle]
210219
convention = "numpy"

0 commit comments

Comments
 (0)