@@ -98,10 +98,9 @@ all = ["pyhf[backends,xmlio,contrib,shellcomplete]"]
9898
9999# Developer extras
100100test = [
101- " pyhf[all]" ,
102101 " scikit-hep-testdata>=0.4.11" ,
103102 " pytest>=6.0" ,
104- " pytest-cov>=2.5.1 " ,
103+ " coverage[toml]>=6.0.0 " ,
105104 " pytest-mock" ,
106105 " requests-mock>=1.9.0" ,
107106 " pytest-benchmark[histogram]" ,
@@ -131,7 +130,7 @@ docs = [
131130 " ipython!=8.7.0" , # c.f. https://github.com/scikit-hep/pyhf/pull/2068
132131]
133132develop = [
134- " pyhf[test,docs]" ,
133+ " pyhf[all, test,docs]" ,
135134 " tbump>=6.7.0" ,
136135 " pre-commit" ,
137136 " nox" ,
@@ -181,14 +180,9 @@ minversion = "6.0"
181180xfail_strict = true
182181addopts = [
183182 " -ra" ,
184- " --cov=pyhf" ,
185- " --cov-branch" ,
186183 " --showlocals" ,
187184 " --strict-markers" ,
188185 " --strict-config" ,
189- " --cov-report=term-missing" ,
190- " --cov-report=xml" ,
191- " --cov-report=html" ,
192186 " --doctest-modules" ,
193187 " --doctest-glob='*.rst'" ,
194188]
@@ -232,7 +226,22 @@ filterwarnings = [
232226 ' ignore:`np.bool8` is a deprecated alias for `np.bool_`:DeprecationWarning' , # numpy via tensorflow
233227 " ignore:module 'sre_constants' is deprecated:DeprecationWarning" , # tensorflow v2.12.0+ for Python 3.11+
234228 " ignore:ml_dtypes.float8_e4m3b11 is deprecated." , # FIXME: Can remove when jaxlib>=0.4.12
229+ " ignore:jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the:DeprecationWarning" , # Issue #2139
235230 " ignore:Skipping device Apple Paravirtual device that does not support Metal 2.0:UserWarning" , # Can't fix given hardware/virtualized device
231+ ' ignore:Type google._upb._message.[A-Z]+ uses PyType_Spec with a metaclass that has custom:DeprecationWarning' , # protobuf via tensorflow
232+ ]
233+
234+ [tool .coverage .run ]
235+ source = [" pyhf" ]
236+ branch = true
237+ omit = [" */pyhf/typing.py" ]
238+
239+ [tool .coverage .report ]
240+ precision = 1
241+ sort = " cover"
242+ show_missing = true
243+ exclude_also = [
244+ " if TYPE_CHECKING:"
236245]
237246
238247[tool .mypy ]
0 commit comments