mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-08 05:18:49 +03:00
refactor: enforce BasedPyright strict type checking (#5158)
This commit is contained in:
@@ -94,6 +94,7 @@ dev = [
|
||||
"pytest-cov>=6.0.0,<7.0.0",
|
||||
"pytest-xdist>=3.8.0,<4.0.0",
|
||||
"ruff>=0.1.0",
|
||||
"basedpyright>=1.39.0,<2.0.0",
|
||||
"pymupdf>=1.25.0",
|
||||
"pypdf>=5.0.0,<6.0.0",
|
||||
"python-docx>=1.1.0,<2.0.0",
|
||||
@@ -164,6 +165,12 @@ target-version = "py311"
|
||||
select = ["E", "F", "I", "N", "W"]
|
||||
ignore = ["E501"]
|
||||
|
||||
[tool.basedpyright]
|
||||
include = ["nanobot"]
|
||||
exclude = ["**/tests"]
|
||||
typeCheckingMode = "strict"
|
||||
pythonVersion = "3.11"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
testpaths = ["tests", "nanobot/channels"]
|
||||
|
||||
Reference in New Issue
Block a user