Add settings and extension recommendations (#139)

- Added recommended settings for the Pylance and Pyright extensions
- Enabled pytest and debugging support in configuration
- Reformatted code with Prettier
---------
Co-authored-by: Chris <git@nootch.de>
This commit is contained in:
Chris
2024-11-10 23:00:16 +01:00
committed by GitHub
parent 1ed06fc270
commit de9fe2ddc9
10 changed files with 135 additions and 84 deletions

View File

@@ -33,6 +33,11 @@ include = ["akkudoktoreos", "akkudoktoreosserver", ]
[tool.setuptools.package-data]
akkudoktoreosserver = ["data/*.npz", ]
[tool.pyright]
# used in Pylance extension for language server
# type check is done by mypy, disable to avoid unwanted errors
typeCheckingMode = "off"
[tool.isort]
profile = "black"
@@ -46,6 +51,5 @@ ignore = [
[tool.pytest.ini_options]
minversion = "8.3.3"
addopts = "--cov=src"
pythonpath = [ "src", ]
testpaths = [ "tests", ]