Skip to content

Commit 4bd7e97

Browse files
Disable basedpyright rule reportUnusedFunction only for tests (#1375)
1 parent 798fbbd commit 4bd7e97

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,12 @@ reportUnnecessaryComparison = false
230230
reportUnnecessaryIsInstance = false
231231
reportUnnecessaryTypeIgnoreComment = false
232232
reportUnreachable = false
233-
reportUnusedFunction = false
234233
reportUnusedCallResult = false
235234
reportUnusedParameter = false
236235

236+
[[tool.basedpyright.executionEnvironments]]
237+
root = "tests"
238+
reportUnusedFunction = false
239+
237240
[tool.sync-with-uv.repo-to-package]
238241
"https://github.com/astral-sh/uv-pre-commit" = "uv"

0 commit comments

Comments
 (0)