diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 123de6c..0000000 --- a/.coveragerc +++ /dev/null @@ -1,15 +0,0 @@ -# SPDX-FileCopyrightText: 2021-2024 Jeff Epler -# -# SPDX-License-Identifier: GPL-3.0-only -[report] -exclude_also = - def __repr__ - if self.debug: - if settings.DEBUG - raise AssertionError - raise NotImplementedError - if 0: - if __name__ == .__main__.: - if TYPE_CHECKING: - class .*\bProtocol\): - @(abc\.)?abstractmethod diff --git a/pyproject.toml b/pyproject.toml index 1d139bd..4f2a2d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,3 +51,5 @@ wwvbtk = "wwvb.wwvbtk:main" [[tool.mypy.overrides]] module = ["adafruit_datetime"] follow_untyped_imports = true +[tool.coverage.report] +exclude_also=["if TYPE_CHECKING:"]