Skip to content

Commit ead32dc

Browse files
Merge pull request #3280 from VWS-Python/coverage-toml-config
Move coverage settings into pyproject.toml
2 parents 016188f + a8da288 commit ead32dc

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
# We run tests against "." and not the tests directory as we test the README
3939
# and documentation.
40-
uv run --group=dev --python=${{ matrix.python-version }} pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests/ .
40+
uv run --group=dev --python=${{ matrix.python-version }} pytest -s -vvv . --cov --cov-config=pyproject.toml
4141
4242
completion-ci:
4343
needs: build

‎pyproject.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@ log_cli = true
434434
xfail_strict = true
435435

436436
[tool.coverage]
437+
run.source = [ "src/", "tests/" ]
437438
run.branch = true
439+
report.fail_under = 100
438440
report.exclude_also = [
439441
"if TYPE_CHECKING:",
440442
]

0 commit comments

Comments
 (0)