Skip to content

Commit d9df44d

Browse files
committed
pyproject: Use future annotations
1 parent d286f51 commit d9df44d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pyproject.toml

+9
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,25 @@ select = [
177177
"PERF", # Perflint
178178
"RUF", # Ruff-specific rules
179179
"D", # pydocstyle
180+
"FA100", # future annotations
180181
]
181182
ignore = [
182183
"COM812", # missing trailing comma, ruff format conflict
183184
]
185+
extend-safe-fixes = [
186+
"UP006",
187+
"UP007",
188+
]
189+
pyupgrade.keep-runtime-typing = false
184190

185191
[tool.ruff.lint.isort]
186192
known-first-party = [
187193
"libvcs",
188194
]
189195
combine-as-imports = true
196+
required-imports = [
197+
"from __future__ import annotations",
198+
]
190199

191200
[tool.ruff.lint.pydocstyle]
192201
convention = "numpy"

0 commit comments

Comments
 (0)