File: .coveragerc

package info (click to toggle)
python-re-assert 1.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 124 kB
  • sloc: python: 148; makefile: 3
file content (33 lines) | stat: -rw-r--r-- 675 bytes parent folder | download
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
[run]
branch = True
source =
    .
omit =
    .tox/*
    /usr/*
    setup.py
    # 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
    # We optionally substitute this
    ${COVERAGE_IGNORE_WINDOWS}

    # 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__['"]:$

[html]
directory = coverage-html

# vim:ft=dosini