diff options
author | Seth M Morton <seth.m.morton@gmail.com> | 2014-07-14 21:28:55 -0700 |
---|---|---|
committer | Seth M Morton <seth.m.morton@gmail.com> | 2014-07-14 21:33:24 -0700 |
commit | a53f15a7593f8a3147b8e9f213eae4074c575af2 (patch) | |
tree | 305825a2d4bd25e23e899135a7051dbb6d593672 /.coveragerc | |
parent | dfc22f23d84062dc9abfd6d914beb3277c18cb85 (diff) | |
download | natsort-a53f15a7593f8a3147b8e9f213eae4074c575af2.tar.gz |
Added .coveragerc and coveralls support.
This is a bit more formal method to track coverage than printing out the
results in TravisCI.
The way natsort is set up, 100% coverage is only possible on python3... the
python2 branch does not have the problem of unorderable types.
Diffstat (limited to '.coveragerc')
-rw-r--r-- | .coveragerc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..1bbfe9d --- /dev/null +++ b/.coveragerc @@ -0,0 +1,22 @@ +[report] +# Regexes for lines to exclude from consideration +exclude_lines = + # Have to re-enable the standard pragma + pragma: no cover + + # Don't complain if tests don't hit defensive assertion code: + raise AssertionError + raise NotImplementedError + raise$ + + # Don't complain if non-runnable code isn't run: + if 0: + if __name__ == .__main__.: + +ignore_errors = True + +# Files to not perform coverage on +omit = + natsort/__init__.* + natsort/py23compat.* + natsort/_version.* |