Skip to content

Commit e497f03

Browse files
chore(internal): detect missing future annotations with ruff
1 parent 234dfc9 commit e497f03

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
@@ -194,6 +194,8 @@ select = [
194194
"B",
195195
# remove unused imports
196196
"F401",
197+
# check for missing future annotations
198+
"FA102",
197199
# bare except statements
198200
"E722",
199201
# unused arguments
@@ -216,6 +218,8 @@ unfixable = [
216218
"T203",
217219
]
218220

221+
extend-safe-fixes = ["FA102"]
222+
219223
[tool.ruff.lint.flake8-tidy-imports.banned-api]
220224
"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"
221225

0 commit comments

Comments
 (0)