Skip to content

Commit

Permalink
adjust coveragerc to skip @jit functions (#303)
Browse files Browse the repository at this point in the history
* adjust coveragerc to skip @jit functions

* refine regex to only jit(nopython=True) functions

* adding njit to exclusion as alias for nopython=True jit function
  • Loading branch information
mmcky authored Apr 19, 2017
1 parent 758620a commit 10f9a84
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,25 @@ omit =
*/site-packages/ordereddict.py
*/site-packages/nose/*
*/unittest2/*

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

# Don't count Numba nopython=True jit functions
@jit\(.*nopython=True
@njit

0 comments on commit 10f9a84

Please sign in to comment.