diff --git a/noxfile.py b/noxfile.py index 49bfb5d70..f0260e601 100644 --- a/noxfile.py +++ b/noxfile.py @@ -72,6 +72,7 @@ def _run_tests( if "--cov" in posargs: _extras.append("cov") posargs.append("--cov-config=pyproject.toml") + env["COVERAGE_CORE"] = "sysmon" install_arg = f"-e.[{','.join(_extras)}]" session.install(install_arg, *install_args, silent=False) diff --git a/pyproject.toml b/pyproject.toml index 761f28a48..c776c69c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -214,8 +214,11 @@ messages_control.disable = [ [tool.coverage] run.source = ["scikit_build_core"] run.omit = ["src/scikit_build_core/_vendor"] -report.exclude_lines = [ - 'pragma: no cover', +run.disable_warnings = [ + "module-not-measured", # Triggers in multithreaded context on build + "no-sysmon", +] +report.exclude_also = [ '\.\.\.', 'if typing.TYPE_CHECKING:', 'if TYPE_CHECKING:',