Skip to content

Commit 65c3ca2

Browse files
committed
MNT: Update coverage config
Remove ignored entry, add excludes for patterns that are unreachable or reasonable not to test.
1 parent 30a5f3f commit 65c3ca2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.coveragerc

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
[run]
22
branch = True
33
source = nibabel
4-
include = */nibabel/*
54
omit =
65
*/externals/*
76
*/benchmarks/*
87
*/tests/*
98
nibabel/_version.py
9+
10+
[report]
11+
exclude_also =
12+
def __repr__
13+
if (ty\.|typing\.)?TYPE_CHECKING:
14+
class .*\((ty\.|typing\.)Protocol\):
15+
@(ty\.|typing\.)overload
16+
if 0:
17+
if __name__ == .__main__.:
18+
@(abc\.)?abstractmethod
19+
raise NotImplementedError

0 commit comments

Comments
 (0)