添加开发依赖 pyright

This commit is contained in:
2024-08-26 11:38:44 +08:00
parent 389a850025
commit 49d00f4d0e
2 changed files with 38 additions and 2 deletions

View File

@@ -35,12 +35,13 @@ zstandard = '>=0.22,<0.24'
[tool.poetry.group.dev.dependencies]
mypy = '>=1.9'
pandas-stubs = '>=1.5.2,<3.0.0'
pyright = "^1.1.377"
ruff = '>=0.3.0'
types-aiofiles = '>=23.2.0.20240106,<25.0.0.0'
types-lxml = '^2024.2.9'
types-pillow = '^10.2.0.20240423'
types-ujson = '^5.9.0'
pandas-stubs = '>=1.5.2,<3.0.0'
nonebot2 = { extras = ['all'], version = '^2.3.0' }
nonebot-adapter-discord = '^0.1.3'
nonebot-adapter-kaiheila = '^0.3.4'
@@ -134,5 +135,11 @@ builtins-ignorelist = ['id']
[tool.ruff.format]
quote-style = 'single'
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "All"
defineConstant = { PYDANTIC_V2 = true }
typeCheckingMode = "standard"
[tool.nonebot]
plugins = ['nonebot_plugin_tetris_stats']