Skip to content

Commit da9bd5f

Browse files
authored
Merge pull request #382 from yukinarit/overload
Ignore @overload in code coverage
2 parents f240f7f + 39e6342 commit da9bd5f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.coveragerc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@ branch = True
33
source = serde
44

55
[report]
6-
exclude_lines =
6+
exclude_also =
7+
def __repr__
78
if self.debug:
8-
pragma: no cover
9+
if settings.DEBUG
10+
raise AssertionError
911
raise NotImplementedError
12+
if 0:
1013
if __name__ == .__main__.:
14+
if TYPE_CHECKING:
15+
class .*\bProtocol\):
16+
@(abc\.)?abstractmethod
17+
@overload
1118
ignore_errors = True
1219
omit =
1320
tests/*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pytest = "*"
5757
pytest-cov = "*"
5858
pytest-watch = "*"
5959
pytest-flake8 = "*"
60-
coverage = "==4.5.4"
60+
coverage = "==7.2.7"
6161
pdoc = "^13"
6262
more-itertools = "~=8.6.0"
6363
pre-commit = "==v2.10.1"

0 commit comments

Comments
 (0)