ci: avoid mutmut native reload crash

This commit is contained in:
Joseph Magly
2026-08-14 22:09:25 -04:00
parent 7d0c02cd34
commit 723fae30d3
2 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -127,7 +127,9 @@ pytest_add_cli_args_test_selection = [
"tests/test_coverage_thresholds.py",
"tests/test_numerical_contracts.py",
]
mutate_only_covered_lines = true
# Mutating the complete bounded target set is both stronger and avoids mutmut's
# in-process native-extension unload/reload crash during covered-line discovery.
mutate_only_covered_lines = false
on_dependency_change = "rerun"
[tool.uv]
+8
View File
@@ -2,12 +2,20 @@
from __future__ import annotations
import tomllib
from copy import deepcopy
from datetime import date
from pathlib import Path
from scripts import check_quality_policy as quality
def test_mutation_campaign_avoids_native_extension_reload_mode():
pyproject = tomllib.loads(Path("pyproject.toml").read_text())
assert pyproject["tool"]["mutmut"]["mutate_only_covered_lines"] is False
def _policy():
return {
"minimums": dict(quality.BASELINE_FLOORS),