Skip to content

Commit a8c5544

Browse files
authored
Merge pull request #1029 from nexB/849-coveragerc
Add simple .coveragerc file
2 parents 790adc9 + 63768f8 commit a8c5544

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.coveragerc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# .coveragerc to control coverage.py
2+
[coverage:run]
3+
branch = True
4+
5+
[coverage:run]
6+
omit =
7+
# no config, tests, samples, data or bin directory and related files
8+
tests/*
9+
samples/*
10+
thirdparty/*
11+
etc/*
12+
*/data/*
13+
*/bin/*
14+
*/templates/*
15+
src/scancode/cli_test_utils.py
16+
src/scancode_config.py
17+
# ignore specific third-party code which is not tested here, but elsewhere
18+
src/extractcode/tarfile_patch/*
19+
src/extractcode/tar.py
20+
src/commoncode/dict_utils.py
21+
22+
[coverage:report]
23+
# lines to exclude from consideration
24+
exclude_lines =
25+
# Have to re-enable the standard pragma
26+
pragma: no cover
27+
28+
# Debug-only code:
29+
def __repr__
30+
if TRACE
31+
logger
32+
33+
# Some assertion code:
34+
raise AssertionError
35+
raise NotImplementedError
36+
37+
# main code does not run in our context:
38+
if __name__ == .__main__.:

0 commit comments

Comments
 (0)