Skip to content

Commit f9d80e7

Browse files
committed
Use new coveragerc, gitattributes
1 parent 042c7cd commit f9d80e7

File tree

2 files changed

+12
-27
lines changed

2 files changed

+12
-27
lines changed

Diff for: .coveragerc

+11-20
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
# Configuration of the coverage.py tool for reporting test coverage.
2-
3-
[report]
4-
# RE patterns for lines to be excluded from consideration.
5-
exclude_lines =
6-
## Have to re-enable the standard pragma
7-
pragma: no cover
8-
## Don't complain if tests don't hit defensive assertion code:
9-
raise AssertionError
10-
raise NotImplementedError
11-
^[ ]*assert False
12-
13-
## Don't complain if non-runnable code isn't run:
14-
^[ ]*@unittest.skip\b
15-
^[ ]{4}unittest.main()
16-
if __name__ == .__main__.:
17-
18-
191
[run]
2+
source =
3+
diffpy.srfit
4+
[report]
205
omit =
21-
## exclude debug.py from codecov report
22-
*/tests/debug.py
6+
*/python?.?/*
7+
*/site-packages/nose/*
8+
# ignore _version.py and versioneer.py
9+
.*version.*
10+
*_version.py
11+
12+
exclude_lines =
13+
if __name__ == '__main__':

Diff for: .gitattributes

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
/.gitattributes export-ignore
2-
/.gitignore export-ignore
3-
/.travis.yml export-ignore
4-
/conda-recipe/ export-ignore
5-
/devutils export-ignore
6-
.gitarchive.cfg export-subst
7-
*.bat text eol=crlf
1+
diffpy.srfit/_version.py export-subst

0 commit comments

Comments
 (0)