🔧 Update coverage configuration and simplify test script (#1867)

This commit is contained in:
Alejandra
2025-09-09 14:41:28 +02:00
committed by GitHub
parent 4db05d6abe
commit cce6f884d3
2 changed files with 13 additions and 2 deletions

View File

@@ -67,3 +67,14 @@ ignore = [
[tool.ruff.lint.pyupgrade] [tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`. # Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true keep-runtime-typing = true
[tool.coverage.run]
source = ["app"]
dynamic_context = "test_function"
[tool.coverage.report]
show_missing = true
sort = "-Cover"
[tool.coverage.html]
show_contexts = true

View File

@@ -3,6 +3,6 @@
set -e set -e
set -x set -x
coverage run --source=app -m pytest coverage run -m pytest
coverage report --show-missing coverage report
coverage html --title "${@-coverage}" coverage html --title "${@-coverage}"