Skip to content

Commit

Permalink
configuration for python-coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Jul 6, 2022
1 parent 7b5a2bb commit 47d3dee
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[run]
source =
SOURCES/
tests/

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
\<assert\>.*

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

precision = 1
include =
SOURCES/*
tests/*
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
**/__pycache__
*.pyc
/.coverage
/coverage.xml

0 comments on commit 47d3dee

Please sign in to comment.