From 4e7e1f1b972c93bf51146443f2db881e4f307312 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 6 May 2025 15:37:06 -0400 Subject: [PATCH] chore: update coverage a bit Signed-off-by: Henry Schreiner --- noxfile.py | 1 + pyproject.toml | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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:',