summaryrefslogtreecommitdiffstats
path: root/.coveragerc
blob: b5d94317e8aa8b0a06f1c2ff2e96e31c091ed992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[run]
branch = True

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
    # Don't complain if non-runnable code isn't run:
    if 0:
    if __name__ == .__main__.:
    raise AssertionError\(

    # Empty bodies in protocols or abstract methods
    ^\s*def [a-zA-Z0-9_]+\(.*\)(\s*->.*)?:\s*\.\.\.(\s*#.*)?$
    ^\s*\.\.\.(\s*#.*)?$

    .*# pragma: no cover
    .*# pragma: no branch

    # Additions for IDLE:
    .*# htest #
    if not (_htest or _utest):
    if not .*_utest:
    if .*_htest: