Skip to content

Commit b2a2b05

Browse files
chore(internal): detect missing future annotations with ruff
1 parent 78e750a commit b2a2b05

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
@@ -222,6 +222,8 @@ select = [
222222
"B",
223223
# remove unused imports
224224
"F401",
225+
# check for missing future annotations
226+
"FA102",
225227
# bare except statements
226228
"E722",
227229
# unused arguments
@@ -244,6 +246,8 @@ unfixable = [
244246
"T203",
245247
]
246248

249+
extend-safe-fixes = ["FA102"]
250+
247251
[tool.ruff.lint.flake8-tidy-imports.banned-api]
248252
"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"
249253

0 commit comments

Comments
 (0)