From 8c46fb5e795119bd6d9b67ad6fac78f756297473 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Mar 2026 19:24:02 +0000 Subject: [PATCH] Move coverage config to [tool.coverage] so pytest works without pytest-cov addopts with --cov flags breaks pytest when pytest-cov is not installed. Move source and fail_under to [tool.coverage.run] and [tool.coverage.report] sections, and use bare --cov in CI to activate the plugin. https://claude.ai/code/session_01XhwTFLRX1Ter3AbgLLEtMf --- .github/workflows/ci.yml | 2 +- pyproject.toml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 750ef86..93f1da9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,4 +35,4 @@ jobs: run: mypy runcycles - name: Run tests with coverage - run: pytest + run: pytest --cov diff --git a/pyproject.toml b/pyproject.toml index 2e8c0c5..155dd15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,4 +38,9 @@ strict = true [tool.pytest.ini_options] asyncio_mode = "auto" -addopts = "--cov=runcycles --cov-fail-under=95" + +[tool.coverage.run] +source = ["runcycles"] + +[tool.coverage.report] +fail_under = 95