From 916ffb2f6bec7d784b897808e07bc57e953dda24 Mon Sep 17 00:00:00 2001 From: Pierre Trespeuch Date: Tue, 10 Dec 2024 17:04:46 +0100 Subject: [PATCH] Disable branch coverage This is required in combination with COVERAGE_CORE=sysmon to speed up coverage runs with Python >= 3.12. See https://github.com/nedbat/coveragepy/issues/1812 ref it/cookiecutter-e3#73 ref #28 --- pyproject.toml | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4dc5e597..830f779f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,7 +110,7 @@ version = {file = "VERSION"} fail_under = 90 [tool.coverage.run] -branch = true +branch = false omit = [ "*mypy.py" ] diff --git a/tox.ini b/tox.ini index c48d8dd5..7e5eee39 100644 --- a/tox.ini +++ b/tox.ini @@ -21,7 +21,7 @@ commands= --durations=10 \ xdist: -n auto \ cov: --e3-cov-rewrite {envsitepackagesdir} src \ - cov: --cov {envsitepackagesdir}/e3/ --cov-branch \ + cov: --cov {envsitepackagesdir}/e3/ \ [] codecov: codecov