Skip to content

Commit 6a8f994

Browse files
committed
Simple coverage support
1 parent 3871a4e commit 6a8f994

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.coverage

52 KB
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.venv
33
build
44
dist
5+
htmlcov

noxfile.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
import nox
66

77
nox.options.default_venv_backend = "uv"
8+
nox.options.sessions = [
9+
"lint",
10+
"readme",
11+
"pip-check-test-py",
12+
"coverage",
13+
]
814

915
python_versions = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
1016

@@ -43,6 +49,30 @@ def tests(session: nox.Session) -> None:
4349
)
4450

4551

52+
@nox.session
53+
def coverage(session: nox.Session) -> None:
54+
"""Run the final coverage report."""
55+
session.install("--upgrade", "coverage")
56+
session.install("-e", ".")
57+
session.run("coverage", "erase")
58+
session.run("coverage", "run", "--append", "-m", "pip_check")
59+
session.run("coverage", "run", "--append", "-m", "pip_check", "--version")
60+
session.run(
61+
"coverage",
62+
"run",
63+
"--append",
64+
"-m",
65+
"pip_check",
66+
"--ascii",
67+
"--not-required",
68+
"--full-version",
69+
"--hide-unchanged",
70+
"--show-update",
71+
)
72+
session.run("coverage", "report")
73+
session.run("coverage", "html")
74+
75+
4676
@nox.session
4777
def readme(session: nox.Session) -> None:
4878
"""Readme Validation."""

0 commit comments

Comments
 (0)