refact: replace pyright with basedpyright

This commit is contained in:
sebthom
2025-04-27 15:17:58 +02:00
parent 376ec76226
commit fe33a0e461
3 changed files with 39 additions and 30 deletions

View File

@@ -55,7 +55,7 @@ dev = [
"autopep8",
"ruff",
"mypy",
"pyright",
"basedpyright",
# packaging:
"pyinstaller",
"platformdirs", # required by pyinstaller
@@ -83,7 +83,7 @@ compile.cmd = "python -O -m PyInstaller pyinstaller.spec --clean"
compile.env = {PYTHONHASHSEED = "1", SOURCE_DATE_EPOCH = "0"} # https://pyinstaller.org/en/stable/advanced-topics.html#creating-a-reproducible-build
debug = "python -m pdb -m kleinanzeigen_bot"
format = "autopep8 --recursive --in-place src tests --verbose"
lint = {shell = "ruff check && mypy && pyright" }
lint = {shell = "ruff check && mypy && basedpyright" }
fix = {shell = "ruff check --fix" }
test = "python -m pytest --capture=tee-sys -v"
utest = "python -m pytest --capture=tee-sys -v -m 'not itest'"
@@ -259,11 +259,11 @@ verbosity = 0
#####################
# pyright
# https://github.com/microsoft/pyright/
# basedpyright
# https://github.com/detachhead/basedpyright
#####################
[tool.pyright]
# https://microsoft.github.io/pyright/#/configuration?id=main-configuration-options
[tool.basedpyright]
# https://docs.basedpyright.com/latest/configuration/config-files/
include = ["src", "tests"]
defineConstant = { DEBUG = false }
pythonVersion = "3.10"