Skip to content

Commit ff39852

Browse files
committed
Omit tox and tests from coverage
1 parent 3ba350d commit ff39852

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[run]
2+
omit =
3+
.tox/*
4+
tests/*

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ deps = pytest
3535

3636
distdir = build
3737
commands =
38-
{env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml --cov} {posargs}
38+
{env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml --cov --cov-config=.coveragerc} {posargs}
3939

4040
[testenv:clean]
4141
deps = coverage

0 commit comments

Comments
 (0)