Skip to content

Commit ea60157

Browse files
chore(internal): detect missing future annotations with ruff
1 parent 97edfd0 commit ea60157

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
@@ -233,6 +233,8 @@ select = [
233233
"B",
234234
# remove unused imports
235235
"F401",
236+
# check for missing future annotations
237+
"FA102",
236238
# bare except statements
237239
"E722",
238240
# unused arguments
@@ -255,6 +257,8 @@ unfixable = [
255257
"T203",
256258
]
257259

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

0 commit comments

Comments
 (0)