Skip to content

Commit 6810f9f

Browse files
chore(internal): detect missing future annotations with ruff
1 parent f75b804 commit 6810f9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ select = [
292292
"B",
293293
# remove unused imports
294294
"F401",
295+
# check for missing future annotations
296+
"FA102",
295297
# bare except statements
296298
"E722",
297299
# unused arguments
@@ -314,6 +316,8 @@ unfixable = [
314316
"T203",
315317
]
316318

319+
extend-safe-fixes = ["FA102"]
320+
317321
[tool.ruff.lint.flake8-tidy-imports.banned-api]
318322
"functools.lru_cache".msg = "This function does not retain type information for the wrapped function's arguments; The `lru_cache` function from `_utils` should be used instead"
319323

0 commit comments

Comments
 (0)