From 039e6640381ddea52b2dbd2b17628e77a61bf579 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Fri, 4 Oct 2024 17:08:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Omit=20third-party=20coverage=20?= =?UTF-8?q?@=20site-packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a workaround for a coveragepy imperfection where it mistakenly treats same-namespace third-party modules as same-project ones: https://github.com/nedbat/coveragepy/issues/1869. Refs: * https://github.com/nedbat/coveragepy/issues/876 * https://github.com/nedbat/coveragepy/issues/905 * https://github.com/nedbat/coveragepy/commit/27d8255 * https://github.com/nedbat/coveragepy/commit/5c2f614 --- .coveragerc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.coveragerc b/.coveragerc index 1dc7a660..44759e3c 100644 --- a/.coveragerc +++ b/.coveragerc @@ -23,6 +23,9 @@ branch = true cover_pylib = false # https://coverage.rtfd.io/en/latest/contexts.html#dynamic-contexts # dynamic_context = test_function # conflicts with `pytest-cov` if set here +# FIXME: drop `omit` post https://github.com/nedbat/coveragepy/issues/1869 fix +omit = + .tox/** parallel = true plugins = covdefaults