Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit b405a2d

Browse files
authored
Merge pull request #148 from jepler/upgrade-coverage
2 parents 6ef71b2 + acdb968 commit b405a2d

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

.coveragerc

Lines changed: 0 additions & 15 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ wwvbtk = "wwvb.wwvbtk:main"
5151
[[tool.mypy.overrides]]
5252
module = ["adafruit_datetime"]
5353
follow_untyped_imports = true
54+
[tool.coverage.report]
55+
exclude_also=["if TYPE_CHECKING:"]

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ adafruit-circuitpython-datetime
55
beautifulsoup4
66
build
77
click
8-
coverage
8+
coverage >= 7.1.0
99
mypy; implementation_name=="cpython"
1010
click>=8.1.5; implementation_name=="cpython"
1111
leapseconddata

test/testcli.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
from collections.abc import Sequence
1515
from typing import Any
1616

17+
# These imports must remain, even though the module contents are not used directly!
18+
import wwvb.dut1table
19+
import wwvb.gen
20+
21+
# The asserts below are to help prevent their removal by a linter.
22+
assert wwvb.dut1table.__name__ == "wwvb.dut1table"
23+
assert wwvb.gen.__name__ == "wwvb.gen"
24+
1725
coverage_add = ("-m", "coverage", "run", "--branch", "-p") if "COVERAGE_RUN" in os.environ else ()
1826

1927

0 commit comments

Comments
 (0)