Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ src =
[report]
precision = 1
show_missing = true
skip_covered = false
skip_covered = true
fail_under = 50

# Some of the patterns below were taken or adapted
Expand All @@ -36,6 +36,7 @@ exclude_lines =
: \.\.\.(\s*#.*)?$
^ +\.\.\.$
-> ['"]?NoReturn['"]?:
^\s*assert_never\b
# non-runnable code
if __name__ == ['"]__main__['"]:$
partial_branches =
Expand Down
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def _coerce_to_densities(...):
## CI/CD Pipeline

GitHub Actions runs tests on Python 3.10–3.14 across Ubuntu, macOS, and Windows.
Codecov minimums are 98% overall and 100% diff coverage for new code.
Codecov minimums are 100% overall and 100% diff coverage for new code.
Intentionally-untested lines must carry an explicit `# pragma: no cover` comment.

## Notes for AI Assistants

Expand Down
15 changes: 15 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Codecov configuration
# ref: https://docs.codecov.com/docs/codecov-yaml
#
# Note: CI only uploads the combined coverage report
# (see the coverage-combine env in tox.ini), which omits
# "cicd_utils/*" and "tests/*", so these targets apply
# to the src/ridgeplot package only.
coverage:
status:
project:
default:
target: 100%
patch:
default:
target: 100%
1 change: 1 addition & 0 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Unreleased changes

### CI/CD

- Review the coverage configuration in light of `covdefaults`, adopting its `assert_never` exclusion and `skip_covered` report setting, and raising all package coverage gates to 100% ({gh-pr}`390`)
- Bump actions/download-artifact from 7 to 8 ({gh-pr}`368`)
- Bump actions/upload-artifact from 6 to 7 ({gh-pr}`369`)
- Bump sigstore/gh-action-sigstore-python from 3.2.0 to 3.3.0 ({gh-pr}`370`)
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ commands =

pytest: pytest --no-cov {posargs}

tests-unit: pytest tests/unit --doctest-modules src {env:_COV_REPORT_XML} --cov-fail-under=95 {posargs:}
tests-unit: pytest tests/unit --doctest-modules src {env:_COV_REPORT_XML} --cov-fail-under=100 {posargs:}
tests-unit: diff-cover {env:_DIFFCOVER_DFLT_ARGS} --fail-under=100

tests-e2e: pytest tests/e2e --cov=cicd_utils/ridgeplot_examples {env:_COV_REPORT_XML} --cov-fail-under=74 {posargs:}
Expand All @@ -49,7 +49,7 @@ commands =
coverage-combine: mv .coverage {env:COVERAGE_FILE}
coverage-combine: coverage xml --data-file={env:COVERAGE_FILE} --omit="cicd_utils/*,tests/*" -o {env:COVERAGE_XML_FILE}
coverage-combine: coverage html --data-file={env:COVERAGE_FILE} --omit="cicd_utils/*,tests/*"
coverage-combine: coverage report --data-file={env:COVERAGE_FILE} --omit="cicd_utils/*,tests/*" --fail-under=98
coverage-combine: coverage report --data-file={env:COVERAGE_FILE} --omit="cicd_utils/*,tests/*" --fail-under=100
coverage-combine: diff-cover {env:_DIFFCOVER_DFLT_ARGS} --fail-under=100

[testenv:pre-commit-{all,quick,autoupgrade}]
Expand Down
Loading