Skip to content

Commit 95fb103

Browse files
authored
Update .coveragerc
1 parent b45a1d7 commit 95fb103

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.coveragerc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,23 @@ show_missing = true
1515
precision = 2
1616
omit = *migrations*
1717
exclude_lines =
18+
# Lines matching these regexes don't need to be covered
19+
# https://coverage.readthedocs.io/en/coverage-5.5/excluding.html?highlight=exclude_lines#advanced-exclusion
20+
21+
# this is the default but must be explicitly specified since
22+
# we are overriding exclude_lines
1823
pragma: no cover
24+
25+
# abstract methods won't ever be run
1926
abc\.abstractmethod
27+
28+
# overloads won't ever be run
2029
typing\.overload
30+
31+
# ellipses (...) are often used in type-hint related stub code
2132
^\s*\.\.\.\s*$
33+
34+
# TYPE_CHECKING guarded code won't be run
2235
if typing.TYPE_CHECKING:
2336
if t.TYPE_CHECKING:
2437
if TYPE_CHECKING:

0 commit comments

Comments
 (0)