move pytest config into pyproject.toml

This commit is contained in:
2026-02-10 15:12:09 +01:00
parent 29824e8c04
commit 8ec92a685c
2 changed files with 10 additions and 13 deletions

View File

@@ -38,7 +38,8 @@ dev = [
"bump-my-version>=0.29.0", "bump-my-version>=0.29.0",
"icecream>=2.1.4", "icecream>=2.1.4",
"nuitka>=2.5.9", "nuitka>=2.5.9",
"prek>=0.3.2", "pytest",
"pytest-cov",
"pyinstaller>=6.17.0", "pyinstaller>=6.17.0",
] ]
swbtest = ["alive-progress>=3.3.0"] swbtest = ["alive-progress>=3.3.0"]
@@ -72,3 +73,11 @@ filename = ".version"
[[tool.uv.index]] [[tool.uv.index]]
name = "gitea" name = "gitea"
url = "https://git.theprivateserver.de/api/packages/PHB/pypi/simple/" url = "https://git.theprivateserver.de/api/packages/PHB/pypi/simple/"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=src --cov-report=term-missing"
[tool.coverage.run]
omit = ["main.py", "test.py", "tests/*", "__init__.py", ]

View File

@@ -1,12 +0,0 @@
[pytest]
# command should be *including --cov to generate coverage report
addopts = --cov
testpaths = tests
python_files = test_*.py
; Configuring pytest
; More info: https://docs.pytest.org/en/6.2.x/customize.html
;Logging
; DATE FORMAT EXAMPLE: %Y-%m-%d %H:%M:%S
; log_cli_format = %(asctime)s %(levelname)-8s %(name)-8s %(message)s
; log_cli_date_format = %H:%M:%S