Skip to content

Commit e8914e3

Browse files
chore(internal): detect missing future annotations with ruff
1 parent a9c5b56 commit e8914e3

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
@@ -234,6 +234,8 @@ select = [
234234
"B",
235235
# remove unused imports
236236
"F401",
237+
# check for missing future annotations
238+
"FA102",
237239
# bare except statements
238240
"E722",
239241
# unused arguments
@@ -256,6 +258,8 @@ unfixable = [
256258
"T203",
257259
]
258260

261+
extend-safe-fixes = ["FA102"]
262+
259263
[tool.ruff.lint.flake8-tidy-imports.banned-api]
260264
"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"
261265

0 commit comments

Comments
 (0)