mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
👷 改用 basedpyright
This commit is contained in:
5
.github/workflows/TypeCheck.yml
vendored
5
.github/workflows/TypeCheck.yml
vendored
@@ -25,8 +25,3 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
poetry run mypy ./nonebot_plugin_tetris_stats
|
poetry run mypy ./nonebot_plugin_tetris_stats
|
||||||
|
|
||||||
- name: Run Pyright
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
poetry run pyright ./nonebot_plugin_tetris_stats/
|
|
||||||
|
|||||||
@@ -20,3 +20,8 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: nonemoji
|
- id: nonemoji
|
||||||
stages: [prepare-commit-msg]
|
stages: [prepare-commit-msg]
|
||||||
|
|
||||||
|
- repo: https://github.com/DetachHead/basedpyright-pre-commit-mirror
|
||||||
|
rev: v1.13.0
|
||||||
|
hooks:
|
||||||
|
- id: basedpyright
|
||||||
|
|||||||
1155
poetry.lock
generated
1155
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -34,9 +34,9 @@ yarl = "^1.9.4"
|
|||||||
zstandard = '>=0.22,<0.24'
|
zstandard = '>=0.22,<0.24'
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
|
basedpyright = "^1.17.0"
|
||||||
mypy = '>=1.9'
|
mypy = '>=1.9'
|
||||||
pandas-stubs = '>=1.5.2,<3.0.0'
|
pandas-stubs = '>=1.5.2,<3.0.0'
|
||||||
pyright = "^1.1.377"
|
|
||||||
ruff = '>=0.3.0'
|
ruff = '>=0.3.0'
|
||||||
types-aiofiles = '>=23.2.0.20240106,<25.0.0.0'
|
types-aiofiles = '>=23.2.0.20240106,<25.0.0.0'
|
||||||
types-lxml = '^2024.2.9'
|
types-lxml = '^2024.2.9'
|
||||||
@@ -135,7 +135,7 @@ builtins-ignorelist = ['id']
|
|||||||
[tool.ruff.format]
|
[tool.ruff.format]
|
||||||
quote-style = 'single'
|
quote-style = 'single'
|
||||||
|
|
||||||
[tool.pyright]
|
[tool.basedpyright]
|
||||||
pythonVersion = "3.10"
|
pythonVersion = "3.10"
|
||||||
pythonPlatform = "All"
|
pythonPlatform = "All"
|
||||||
defineConstant = { PYDANTIC_V2 = true }
|
defineConstant = { PYDANTIC_V2 = true }
|
||||||
|
|||||||
Reference in New Issue
Block a user