From aa78bab638641f41244210a544e8cff447819520 Mon Sep 17 00:00:00 2001 From: alexpolo1 Date: Sat, 20 Jun 2026 11:30:16 +0200 Subject: [PATCH] ci: harden coverage omit so config-3.py phantom never trips xml The bare "config-3.py" omit never matched the phantom's absolute path (D:\a\...\config-3.py), so coverage xml only survived via --ignore-errors and still logged the alarming "No source for code" line. Use a glob (*config-*.py) that matches the phantom at any path while keeping src/config.py measured (verified via coverage GlobMatcher). Co-Authored-By: Claude Sonnet 4.6 --- .coveragerc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index e9fb0db..ea1e099 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,9 +2,11 @@ [run] branch = True source = src -# Exclude conda internal shims that leak into coverage data +# Exclude conda/xonsh internal shims that leak into coverage data. The phantom +# is an absolute path like D:\a\...\config-3.py, so a bare "config-3.py" omit +# never matches — use a glob that matches any path ending in config-.py. omit = - config-3.py + *config-*.py */site-packages/* */conda-meta/*