move pytest config into pyproject.toml
This commit is contained in:
@@ -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", ]
|
||||||
|
|||||||
12
pytest.ini
12
pytest.ini
@@ -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
|
|
||||||
Reference in New Issue
Block a user