Skip to content

Commit 8af2a59

Browse files
committed
pyproject: Use future annotations
1 parent 566f350 commit 8af2a59

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
@@ -152,10 +152,16 @@ select = [
152152
"PERF", # Perflint
153153
"RUF", # Ruff-specific rules
154154
"D", # pydocstyle
155+
"FA100", # future annotations
155156
]
156157
ignore = [
157158
"COM812", # missing trailing comma, ruff format conflict
158159
]
160+
extend-safe-fixes = [
161+
"UP006",
162+
"UP007",
163+
]
164+
pyupgrade.keep-runtime-typing = false
159165

160166
[tool.ruff.lint.pydocstyle]
161167
convention = "numpy"
@@ -165,6 +171,9 @@ known-first-party = [
165171
"g",
166172
]
167173
combine-as-imports = true
174+
required-imports = [
175+
"from __future__ import annotations",
176+
]
168177

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

0 commit comments

Comments
 (0)