mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
The test step runs under coverage and reports files that are not fully covered. pyproject.toml holds the configuration and the floor: 51% measured without the live libvirt suite on 2026-10-03, floor 50% to absorb differences between Python versions. With the live suite against a real host the same code is 69% covered.
19 lines
576 B
TOML
19 lines
576 B
TOML
[tool.ruff]
|
|
target-version = "py310"
|
|
extend-exclude = ["static"]
|
|
|
|
[tool.ruff.lint]
|
|
# Syntax errors and pyflakes; widen the rule set step by step.
|
|
select = ["E9", "F"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
# Settings overlay: re-exports the base settings by design.
|
|
"webvirtcloud/settings-dev.py" = ["F403", "F405"]
|
|
|
|
[tool.coverage.run]
|
|
source = ["."]
|
|
omit = [".venv/*", "*/migrations/*", "*/test*.py", "*/tests.py", "manage.py", "webvirtcloud/settings*.py"]
|
|
|
|
[tool.coverage.report]
|
|
# Measured 51% without the live libvirt suite (2026-10-03); raise as tests grow.
|
|
fail_under = 50
|