Skip to content

Commit 9b55e6e

Browse files
chore(internal): detect missing future annotations with ruff
1 parent 1dc8993 commit 9b55e6e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ select = [
226226
"B",
227227
# remove unused imports
228228
"F401",
229+
# check for missing future annotations
230+
"FA102",
229231
# bare except statements
230232
"E722",
231233
# unused arguments
@@ -248,6 +250,8 @@ unfixable = [
248250
"T203",
249251
]
250252

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

0 commit comments

Comments
 (0)