File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1- .PHONY : help venv conda docker docstyle format style black test lint check
1+ .PHONY : help venv conda docker docstyle format style black test lint check coverage
22.DEFAULT_GOAL = help
33
44PYTHON = python
@@ -58,8 +58,11 @@ black: # Format code in-place using black.
5858 black symbolic_pymc/
5959
6060test : # Test code using pytest.
61- pytest -v tests/ --cov=symbolic_pymc/ --html=testing-report.html --self-contained-html
61+ pytest -v tests/ --cov=symbolic_pymc/ --cov-report=xml --html=testing-report.html --self-contained-html
62+
63+ coverage : test
64+ diff-cover coverage.xml --compare-branch=master --fail-under=100
6265
6366lint : docstyle format style # Lint code using pydocstyle, black and pylint.
6467
65- check : lint test # Both lint and test code. Runs `make lint` followed by `make test`.
68+ check : lint test coverage # Both lint and test code. Runs `make lint` followed by `make test`.
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ pytest-cov>=2.6.1
44pytest-html >= 1.20.0
55pylint >= 2.3.1
66black >= 19.3b0
7+ diff-cover
78ipython
Original file line number Diff line number Diff line change @@ -9,4 +9,8 @@ convention = numpy
99python_functions =test_*
1010filterwarnings =
1111 ignore:the imp module is deprecated:DeprecationWarning:
12- ignore:Using a non-tuple sequence:FutureWarning:theano\.tensor
12+ ignore:Using a non-tuple sequence:FutureWarning:theano\.tensor
13+
14+ [coverage:report]
15+ exclude_lines =
16+ pragma: no cover
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class UnificationFailure(Exception):
2020 pass
2121
2222
23- def debug_unify (enable = True ):
23+ def debug_unify (enable = True ): # pragma: no cover
2424 """Wrap unify functions so that they raise a `UnificationFailure` exception when unification fails."""
2525 if enable :
2626
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def _check_eq(a, b):
1010 return a == b
1111
1212
13- def meta_parts_unequal (x , y , pdb = False ):
13+ def meta_parts_unequal (x , y , pdb = False ): # pragma: no cover
1414 """Traverse meta objects and return the first pair of elements that are not equal."""
1515 res = None
1616 if type (x ) != type (y ):
You can’t perform that action at this time.
0 commit comments