Skip to content

Commit ea6fa72

Browse files
chore(internal): detect missing future annotations with ruff
1 parent 3e807ea commit ea6fa72

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
@@ -225,6 +225,8 @@ select = [
225225
"B",
226226
# remove unused imports
227227
"F401",
228+
# check for missing future annotations
229+
"FA102",
228230
# bare except statements
229231
"E722",
230232
# unused arguments
@@ -247,6 +249,8 @@ unfixable = [
247249
"T203",
248250
]
249251

252+
extend-safe-fixes = ["FA102"]
253+
250254
[tool.ruff.lint.flake8-tidy-imports.banned-api]
251255
"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"
252256

0 commit comments

Comments
 (0)