Skip to content

Commit 0fb3a9b

Browse files
authored
Merge pull request #2201 from bsipocz/coverage_config
Adding some config for coverage
2 parents bc722c9 + 1cdd0ce commit 0fb3a9b

File tree

3 files changed

+14
-32
lines changed

3 files changed

+14
-32
lines changed

astroquery/tests/coveragerc

Lines changed: 0 additions & 31 deletions
This file was deleted.

setup.cfg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,19 @@ max-line-length = 120
129129
ignore = E226,E402,W503
130130
exclude = _astropy_init.py,version.py
131131

132+
[coverage:run]
133+
omit =
134+
astroquery/*_init*
135+
astroquery/tests/*
136+
astroquery/*/tests/*
137+
astroquery/*setup*
138+
astroquery/version*
139+
*/astroquery/*_init*
140+
*/astroquery/tests/*
141+
*/astroquery/*/tests/*
142+
*/astroquery/*setup*
143+
*/astroquery/version*
144+
132145
[entry_points]
133146

134147
[options]

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ commands =
4848
pip freeze
4949
# FIXME: there are too many failures in the docs example gallery, ignore it for now
5050
!cov: pytest --pyargs astroquery {toxinidir}/docs --ignore={toxinidir}/docs/gallery* {posargs}
51-
cov: pytest --pyargs astroquery {toxinidir}/docs --ignore={toxinidir}/docs/gallery* --cov astroquery {posargs}
51+
cov: pytest --pyargs astroquery {toxinidir}/docs --ignore={toxinidir}/docs/gallery* --cov astroquery --cov-config={toxinidir}/setup.cfg {posargs}
5252
cov: coverage xml -o {toxinidir}/coverage.xml
5353

5454
[testenv:codestyle]

0 commit comments

Comments
 (0)