summaryrefslogtreecommitdiff
path: root/.coveragerc
blob: 57fc88ec502fe1187e0d273e002da95c0c58d55f (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[run]
source = .
branch = true
parallel = true
omit =
    */.tox/*
    */__main__.py
    */setup.py
    */venv*/*
    # TODO: separate the tests from the test data
    testsuite/E*.py
    testsuite/W*.py
    testsuite/latin-1.py
    testsuite/noqa.py
    testsuite/python*.py
    testsuite/utf-8-bom.py

[report]
show_missing = True
skip_covered = True
# TODO: increase this
fail_under = 90
exclude_lines =
    # a more strict default pragma
    \# pragma: no cover\b

    # allow defensive code
    ^\s*raise AssertionError\b
    ^\s*raise NotImplementedError\b
    ^\s*return NotImplemented\b
    ^\s*raise$

    # typing-related code
    ^if (False|TYPE_CHECKING):
    : \.\.\.$
    ^ +\.\.\.$
    -> ['"]?NoReturn['"]?:

    # non-runnable code
    if __name__ == ['"]__main__['"]:$