We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b32f1b commit d777606Copy full SHA for d777606
.coveragerc
@@ -1,6 +1,25 @@
1
+[run]
2
+branch = True
3
+
4
[report]
-exclude_lines =
- pragma: no cover
- # Don't complain if tests don't hit defensive assertion code:
5
- # See: https://stackoverflow.com/a/9212387/3407256
+; Regexes for lines to exclude from consideration
6
+exclude_also =
7
+ ; Don't complain about missing debug-only code:
8
+ def __repr__
9
+ if self\.debug
10
11
+ ; Don't complain if tests don't hit defensive assertion code:
12
+ raise AssertionError
13
raise NotImplementedError
14
15
+ ; Don't complain if non-runnable code isn't run:
16
+ if 0:
17
+ if __name__ == .__main__.:
18
19
+ ; Don't complain about abstract methods, they aren't run:
20
+ @(abc\.)?abstractmethod
21
22
+ignore_errors = True
23
24
+[html]
25
+directory = coverage_html_report
0 commit comments