Skip to content

Commit ae6ac51

Browse files
committed
add codecov recommended coveragerc
1 parent 4d2b0a0 commit ae6ac51

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.coveragerc

+10
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
[run]
22
source = bookstore
3+
4+
[report]
5+
exclude_lines =
6+
if self.debug:
7+
pragma: no cover
8+
raise NotImplementedError
9+
if __name__ == .__main__.:
10+
ignore_errors = True
11+
omit =
12+
*/tests/*

tox.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ basepython =
6161
dist: python3.6
6262
docs: python3.6
6363
deps = .[test]
64-
commands = pytest -v --maxfail=2 --cov=./ -W always
64+
commands =
65+
pytest -v --maxfail=2 --cov=bookstore -W always

0 commit comments

Comments
 (0)