-
Notifications
You must be signed in to change notification settings - Fork 9
/
.coveragerc
67 lines (54 loc) · 1.37 KB
/
.coveragerc
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
60
61
62
63
64
65
66
67
# Exclude various files and directories from coverage.
# Only tracked files or directories need to be excluded here, as those are the
# only ones that get pushed to GitHub and pulled in by Travis. However, we also
# exclude some untracked directories that otherwise may significantly skew
# coverage locally.
#
# Don't filter /build/ here. A parent in Travis' default build directory has
# that name.
[run]
debug = True
parallel = True
concurrency = multiprocessing
branch = True
omit =
# All dot files and dirs
# Adding the .* filter triggers "Coverage.py warning: No data was collected"
#*/.*
# All underscore files and dirs
*/_*
# Files
*/conftest.py
*/settings*.py
*/setup.py
*/test*.py
# Dirs
*/build/*
*/dev_tools/*
*/develop-eggs/*
*/dist-packages/*
*/dist/*
*/drivers/*
*/generated/*
*/migrations/*
*/sdist/*
*/tests/*
*/tools/*
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# 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 0:
if False:
if __name__ == .__main__.:
ignore_errors = True
[html]
directory = htmlcov