mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
refact: replace pyright with basedpyright
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user