deps/dev: add basedpyright for type checking

This commit is contained in:
2026-07-09 15:53:10 +08:00
parent e5cf585a72
commit b335519832
2 changed files with 52 additions and 3 deletions
+15 -1
View File
@@ -19,7 +19,8 @@ capnpc-py = "capnp_stubgen.plugin:main"
[dependency-groups]
dev = [
"pytest>=8",
"pytest>=8",
"basedpyright>=1.39.9",
]
[build-system]
@@ -34,3 +35,16 @@ testpaths = ["tests"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.basedpyright]
typeCheckingMode = "recommended"
allowedUntypedLibraries = ["pycapnp"]
reportImportCycles = "hint"
# Downgraded to hint for capnp to_dict() dynamic data patterns
reportUnknownVariableType = "hint"
reportUnknownArgumentType = "hint"
reportUnknownMemberType = "hint"
reportUnknownParameterType = "hint"
reportAny = "hint"
reportExplicitAny = "hint"