Skip to content

Commit 668fc76

Browse files
authored
Merge pull request #432 from MongoEngine/pytest-show-missing
Adjust pytest to show missing coverage
2 parents 81f2fbe + 2968fa2 commit 668fc76

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

setup.cfg

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,27 @@ ignore=E501,F403,F405,I201,W503,E203
77
max-line-length=90
88
exclude=build,dist,docs,examples,venv,.tox,.eggs
99
max-complexity=17
10+
11+
[report]
12+
sort = Cover
13+
# Regexes for lines to exclude from consideration
14+
exclude_lines =
15+
# Have to re-enable the standard pragma
16+
pragma: no cover
17+
18+
# Don't complain about missing debug-only code:
19+
def __repr__
20+
def __str__
21+
if self\.debug
22+
if settings\.DEBUG:
23+
24+
# Don't complain if tests don't hit defensive assertion code:
25+
raise AssertionError
26+
raise NotImplementedError
27+
28+
# Don't complain if non-runnable code isn't run:
29+
if 0:
30+
if __name__ == .__main__.:
31+
32+
ignore_errors = True
33+
show_missing = True

0 commit comments

Comments
 (0)