Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d9df44d

Browse filesBrowse files
committed
pyproject: Use future annotations
1 parent d286f51 commit d9df44d
Copy full SHA for d9df44d

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed

‎pyproject.toml

Copy file name to clipboardExpand all lines: pyproject.toml
+9Lines changed: 9 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.