Skip to content

Commit d93ed08

Browse files
chore(internal): detect missing future annotations with ruff
1 parent 549dd56 commit d93ed08

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
@@ -227,6 +227,8 @@ select = [
227227
"B",
228228
# remove unused imports
229229
"F401",
230+
# check for missing future annotations
231+
"FA102",
230232
# bare except statements
231233
"E722",
232234
# unused arguments
@@ -249,6 +251,8 @@ unfixable = [
249251
"T203",
250252
]
251253

254+
extend-safe-fixes = ["FA102"]
255+
252256
[tool.ruff.lint.flake8-tidy-imports.banned-api]
253257
"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"
254258

0 commit comments

Comments
 (0)