Switch to basedpyright
Some checks failed
CI / validation (push) Has been cancelled
CI / unit-tests (push) Has been cancelled
CI / Produce Pull Request payload artifact (push) Has been cancelled

This commit is contained in:
ItsDrike 2024-07-10 17:30:22 +02:00
parent 06cbefb631
commit 824d6273a6
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 44 additions and 27 deletions

View file

@ -17,7 +17,7 @@ poethepoet = "^0.25.0"
[tool.poetry.group.lint.dependencies]
ruff = "^0.3.2"
pre-commit = "^3.6.2"
pyright = "^1.1.359"
basedpyright = "^1.13.3"
[tool.poetry.group.test.dependencies]
pytest = "^8.1.1"
@ -133,6 +133,7 @@ line-ending = "lf"
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "standard"
reportUntypedFunctionDecorator = "error"
reportUntypedClassDecorator = "error"
@ -202,6 +203,10 @@ help = "Run ruff formatter"
cmd = "pytest -v --failed-first"
help = "Run pytest tests"
[tool.poe.tasks.pyright]
cmd = "basedpyright ."
help = "Run BasedPyright type-checker"
[tool.poe.tasks.retest]
cmd = "pytest -v --last-failed"
help = "Run previously failed tests using pytest"