Skip to content

test: Add backend support to testing

codefactor.io / CodeFactor failed Apr 18, 2024 in 1s

16 issues found.

Annotations

Check notice on line 84 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L84

unresolved comment '# FIXME: Remove float cast after TensorFlow support removed' (C100)

Check notice on line 149 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L149

unresolved comment '# FIXME: Remove float cast after TensorFlow support removed' (C100)

Check notice on line 83 in src/pyhf/infer/intervals/upper_limits.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/pyhf/infer/intervals/upper_limits.py#L83

unresolved comment '# FIXME: scipy.optimize.toms748 still operates on floats,' (C100)

Check notice on line 76 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L76

unresolved comment '# FIXME: Remove float cast after TensorFlow support removed' (C100)

Check notice on line 164 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L164

unresolved comment '# FIXME: Can use expected_limits == pytest.approx([...]) after TensorFlow support removed' (C100)

Check notice on line 120 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L120

unresolved comment '# FIXME: Can use expected_limits == pytest.approx([...]) after TensorFlow support removed' (C100)

Check notice on line 208 in src/pyhf/infer/intervals/upper_limits.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/pyhf/infer/intervals/upper_limits.py#L208

unresolved comment '# TODO: Can use `.T` after TensorFlow support is removed.' (C100)

Check notice on line 131 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L131

unresolved comment '# FIXME: Can use expected_limits == pytest.approx([...]) after TensorFlow support removed' (C100)

Check notice on line 179 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L179

unresolved comment '# FIXME: Can use expected_limits == pytest.approx([...]) after TensorFlow support removed' (C100)

Check notice on line 56 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L56

unresolved comment '# FIXME: Remove float cast after TensorFlow support removed' (C100)

Check notice on line 162 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L162

unresolved comment '# FIXME: Remove float cast after TensorFlow support removed' (C100)

Check notice on line 118 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L118

unresolved comment '# FIXME: Remove float cast after TensorFlow support removed' (C100)

Check notice on line 103 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L103

unresolved comment '# FIXME: Remove float cast after TensorFlow support removed' (C100)

Check notice on line 129 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L129

unresolved comment '# FIXME: Remove float cast after TensorFlow support removed' (C100)

Check notice on line 151 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L151

unresolved comment '# FIXME: Can use expected_limits == pytest.approx([...]) after TensorFlow support removed' (C100)

Check notice on line 177 in tests/test_infer.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/test_infer.py#L177

unresolved comment '# FIXME: Remove float cast after TensorFlow support removed' (C100)