Skip to content

Commit 2672b8f

Browse files
chore(internal): detect missing future annotations with ruff
1 parent e5f93f5 commit 2672b8f

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
@@ -256,6 +256,8 @@ select = [
256256
"B",
257257
# remove unused imports
258258
"F401",
259+
# check for missing future annotations
260+
"FA102",
259261
# bare except statements
260262
"E722",
261263
# unused arguments
@@ -278,6 +280,8 @@ unfixable = [
278280
"T203",
279281
]
280282

283+
extend-safe-fixes = ["FA102"]
284+
281285
[tool.ruff.lint.flake8-tidy-imports.banned-api]
282286
"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"
283287

0 commit comments

Comments
 (0)