Skip to content

Commit

Permalink
Move coverage options out of tox.ini and into .coveragerc
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gallagher committed Jul 26, 2018
1 parent b49f02b commit 5ddc426
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ omit =
*/__main__.py

[report]
show_missing = True
skip_covered = True
fail_under = 100

exclude_lines =
# Have to re-enable the standard pragma
\#\s*pragma: no cover
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ passenv = HOME SSH_AUTH_SOCK USER
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --show-missing --fail-under 100
coverage report

[testenv:pre-commit]
envdir = venv-{[tox]project}
Expand Down

0 comments on commit 5ddc426

Please sign in to comment.