From 6d16514255426073294a9c25a208e9398e5e5bbd Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sat, 12 Sep 2026 14:35:19 +0300 Subject: [PATCH] chore(coverage): declare the gate in [tool.coverage.report] and measure only in test-ci --- justfile | 4 ++-- pyproject.toml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 7976f3f2..edc445a9 100644 --- a/justfile +++ b/justfile @@ -25,11 +25,11 @@ test *args: # The gated full run: 100% line coverage required. CI runs this. test-ci: - uv run --no-sync pytest --cov=. --cov-report term-missing --cov-report xml --cov-fail-under=100 + uv run --no-sync pytest --cov=. --cov-report term-missing --cov-report xml # Branch-coverage run (diagnostic; line coverage is the enforced gate, not branch). test-branch: - uv run --no-sync pytest --cov=. --cov-branch --cov-fail-under=100 + uv run --no-sync pytest --cov=. --cov-branch # Run the guard-tier benchmark suite (zero-dep; pytest-benchmark). Excludes the # comparative tier, whose deps live in benchmarks/comparative and are not in this env. diff --git a/pyproject.toml b/pyproject.toml index a78ad3a9..88d407d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,3 +95,4 @@ asyncio_default_fixture_loop_scope = "function" run.concurrency = ["thread"] run.omit = ["benchmarks/*"] report.exclude_also = ["if typing.TYPE_CHECKING:"] +report.fail_under = 100