👷 改用 basedpyright

This commit is contained in:
2024-08-28 00:40:24 +08:00
parent 0a660922bb
commit 84db42f1ce
4 changed files with 622 additions and 547 deletions

View File

@@ -25,8 +25,3 @@ jobs:
shell: bash
run: |
poetry run mypy ./nonebot_plugin_tetris_stats
- name: Run Pyright
shell: bash
run: |
poetry run pyright ./nonebot_plugin_tetris_stats/

View File

@@ -20,3 +20,8 @@ repos:
hooks:
- id: nonemoji
stages: [prepare-commit-msg]
- repo: https://github.com/DetachHead/basedpyright-pre-commit-mirror
rev: v1.13.0
hooks:
- id: basedpyright

1155
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -34,9 +34,9 @@ yarl = "^1.9.4"
zstandard = '>=0.22,<0.24'
[tool.poetry.group.dev.dependencies]
basedpyright = "^1.17.0"
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'
@@ -135,7 +135,7 @@ builtins-ignorelist = ['id']
[tool.ruff.format]
quote-style = 'single'
[tool.pyright]
[tool.basedpyright]
pythonVersion = "3.10"
pythonPlatform = "All"
defineConstant = { PYDANTIC_V2 = true }