Skip to content

Commit 03db1da

Browse files
committed
pyproject: Use future annotations
1 parent df8480c commit 03db1da

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
@@ -168,16 +168,25 @@ select = [
168168
"PERF", # Perflint
169169
"RUF", # Ruff-specific rules
170170
"D", # pydocstyle
171+
"FA100", # future annotations
171172
]
172173
ignore = [
173174
"COM812", # missing trailing comma, ruff format conflict
174175
]
176+
extend-safe-fixes = [
177+
"UP006",
178+
"UP007",
179+
]
180+
pyupgrade.keep-runtime-typing = false
175181

176182
[tool.ruff.lint.isort]
177183
known-first-party = [
178184
"libtmux",
179185
]
180186
combine-as-imports = true
187+
required-imports = [
188+
"from __future__ import annotations",
189+
]
181190

182191
[tool.ruff.lint.pydocstyle]
183192
convention = "numpy"

0 commit comments

Comments
 (0)