summaryrefslogtreecommitdiff
path: root/.coveragerc
blob: d74ca19d08f7b22e6c8489125e1c6e105a2190ae (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
25
26
[run]
branch = True
source =
    flake8
    tests
omit =
    # Don't complain if non-runnable code isn't run
    */__main__.py

[report]
show_missing = True
skip_covered = True
exclude_lines =
    # Have to re-enable the standard pragma
    \#\s*pragma: no cover

    # Don't complain if tests don't hit defensive assertion code:
    ^\s*raise AssertionError\b
    ^\s*raise NotImplementedError\b
    ^\s*return NotImplemented\b
    ^\s*raise$

    # Don't complain if non-runnable code isn't run:
    ^if __name__ == ['"]__main__['"]:$
    ^\s*if False:
    ^\s*if TYPE_CHECKING: