-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.coveragerc
More file actions
59 lines (46 loc) · 1.08 KB
/
.coveragerc
File metadata and controls
59 lines (46 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Coverage.py configuration for Codetective
[run]
source = codetective
omit =
*/tests/*
*/venv/*
*/__pycache__/*
*/site-packages/*
*/gui/*
*/cli/*
setup.py
*/__main__.py
branch = True
parallel = True
[report]
precision = 2
show_missing = True
skip_covered = False
skip_empty = True
# Fail if coverage is below 70% (Module 3 requirement)
fail_under = 70
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code
def __repr__
# Don't complain if tests don't hit defensive assertion code
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run
if __name__ == .__main__.:
# Don't complain about abstract methods
@abstractmethod
@abc.abstractmethod
# Don't complain about type checking blocks
if TYPE_CHECKING:
if typing.TYPE_CHECKING:
[html]
directory = htmlcov
title = Codetective Test Coverage Report
[xml]
output = coverage.xml
[paths]
source =
codetective/
*/codetective/