Skip to content

Commit 0fb9f92

Browse files
chore(internal): detect missing future annotations with ruff
1 parent 0dccc0c commit 0fb9f92

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
@@ -211,6 +211,8 @@ select = [
211211
"B",
212212
# remove unused imports
213213
"F401",
214+
# check for missing future annotations
215+
"FA102",
214216
# bare except statements
215217
"E722",
216218
# unused arguments
@@ -233,6 +235,8 @@ unfixable = [
233235
"T203",
234236
]
235237

238+
extend-safe-fixes = ["FA102"]
239+
236240
[tool.ruff.lint.flake8-tidy-imports.banned-api]
237241
"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"
238242

0 commit comments

Comments
 (0)