From 872339ffc277e17df04b61bcbb631db77e62e88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francis=20Clairicia-Rose-Claire-Jos=C3=A9phine?= Date: Sun, 3 Nov 2024 13:31:00 +0100 Subject: [PATCH] CI: Coverage report was wrong for FreeBSD flag (#372) --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8b40c050..9dd7a689 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -267,8 +267,9 @@ disable_warnings = [ [tool.coverage.paths] source = [ "src/", - ".tox/*/lib/python*/site-packages", - '.tox\*\Lib\site-packages', # Keep single quote here (TOML raw string syntax, useful for '\') + # Leading '*/' is necessary because .tox folder could be in other directory than the current working directory. + "*/.tox/*/lib/python*/site-packages", + '*\.tox\*\Lib\site-packages', # Keep single quote here (TOML raw string syntax, useful for '\') ] [tool.coverage.report]