Skip to content

Commit

Permalink
Merge pull request #109 from pllim/🌮
Browse files Browse the repository at this point in the history
MNT: Move coveragerc to setup.cfg
  • Loading branch information
mwcraig committed Feb 4, 2020
2 parents f72b450 + 3120b79 commit 6045353
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 35 deletions.
31 changes: 0 additions & 31 deletions astrowidgets/tests/coveragerc

This file was deleted.

42 changes: 39 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,42 @@ test =
docs =
sphinx-astropy

[options.package_data]
astrowidgets.tests =
coveragerc
[coverage:run]
source = astrowidgets
omit =
astrowidgets/_astropy_init*
astrowidgets/conftest*
astrowidgets/cython_version*
astrowidgets/setup_package*
astrowidgets/*/setup_package*
astrowidgets/*/*/setup_package*
astrowidgets/tests/*
astrowidgets/*/tests/*
astrowidgets/*/*/tests/*
astrowidgets/version*
*/astrowidgets/_astropy_init*
*/astrowidgets/conftest*
*/astrowidgets/cython_version*
*/astrowidgets/setup_package*
*/astrowidgets/*/setup_package*
*/astrowidgets/*/*/setup_package*
*/astrowidgets/tests/*
*/astrowidgets/*/tests/*
*/astrowidgets/*/*/tests/*
*/astrowidgets/version*

[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about packages we have installed
except ImportError
# Don't complain if tests don't hit assertions
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 about IPython completion helper
def _ipython_key_completions_
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ requires =
pytest-cov
coverage
commands =
pytest --cov astrowidgets
pytest --cov astrowidgets --cov-config={toxinidir}/setup.cfg

[testenv:build_docs]
extras = docs
Expand Down

0 comments on commit 6045353

Please sign in to comment.