Skip to content

Commit

Permalink
Merge 1a78bf8 into d3ff053
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro authored Jun 14, 2021
2 parents d3ff053 + 1a78bf8 commit 378a41d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 39 deletions.
10 changes: 10 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
range: 60..100
round: down
precision: 2
status:
project:
default:
target: auto
threshold: 0.5%
#patch: off
64 changes: 25 additions & 39 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,49 +1,35 @@
[run]
source = tardis
# .coveragerc to control coverage.py

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

# Don't complain about packages we have installed
except ImportError
# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit assertions
raise AssertionError
raise NotImplementedError
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain about script hooks
def main\(.*\):

# Ignore branches that don't pertain to this version of Python
pragma: py{ignore_python_version}
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

omit =
*__init__*
*_astropy_init*
*version*
*tests*
*conftest*
*setup_package*

tardis/gui/*
tardis/stats/*

# Tests should not appear in coveralls
tardis/tests/*
tardis/plasma/tests/*
tardis/model/tests/*
tardis/montecarlo/tests/*
tardis/simulation/tests/*
tardis/io/tests/*

# Omit all setup_package.py files
tardis/tests/setup_package.py
tardis/plasma/setup_package.py
tardis/montecarlo/setup_package.py
tardis/model/setup_package.py
tardis/simulation/setup_package.py
tardis/io/setup_package.py

tardis/gui/*
tardis/stats/*
tardis/analysis.py

# Omit all version and __init__.py files
*version*
*__init__*
*_astropy_init*

ignore_errors = True

[html]
directory = coverage_html_report

0 comments on commit 378a41d

Please sign in to comment.