From 17f103947d1e37d97dc6c2384778d0a44ae966c6 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sat, 12 Sep 2026 14:36:15 +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 f048347..9924e73 100644 --- a/justfile +++ b/justfile @@ -20,10 +20,10 @@ test *args: uv run --no-sync pytest {{ args }} 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 test-branch: - uv run --no-sync pytest --cov=. --cov-branch --cov-fail-under=100 + uv run --no-sync pytest --cov=. --cov-branch # Auth via PyPI Trusted Publishing (OIDC); uv publish auto-detects the CI id-token. publish: diff --git a/pyproject.toml b/pyproject.toml index 6e29c51..3be3765 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,6 +80,7 @@ asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "function" [tool.coverage.report] +fail_under = 100 exclude_also = [ "if typing.TYPE_CHECKING:", ]