Skip to content

Merge branch 'dev' into ruff #72

Merge branch 'dev' into ruff

Merge branch 'dev' into ruff #72

Triggered via push December 18, 2023 14:45
Status Failure
Total duration 2m 17s
Artifacts

ci.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

33 errors and 10 warnings
lint
Process completed with exit code 1.
test (3.10)
Process completed with exit code 1.
test (3.11)
Process completed with exit code 1.
test (3.8): tests/test_mri.py#L23
TestMri.test_add_load_epi_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.8): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.8): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0002 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.8): tests/bdata/test_bdata.py#L31
TestBdata.test_add_get AssertionError: Arrays are not equal (shapes (5, 0, 38), (5, 10) mismatch) x: array([], shape=(5, 0, 38), dtype=float64) y: array([[0.649376, 0.265667, 0.69594 , 0.130841, 0.350791, 0.601293, 0.988577, 0.071022, 0.983739, 0.085796], [0.952658, 0.661421, 0.554649, 0.374455, 0.938649, 0.464814,...
test (3.8): tests/bdata/test_bdata.py#L88
TestBdata.test_metadata_add_get_where AssertionError: Arrays are not equal (shapes (0, 18), (10,) mismatch) x: array([], shape=(0, 18), dtype=float64) y: array([0.01383 , 0.629368, 0.054157, 0.088197, 0.624333, 0.300257, 0.375427, 0.239287, 0.594651, 0.578749])
test (3.8): tests/bdata/test_bdata.py#L126
TestBdata.test_select AssertionError: Arrays are not equal (shapes (5, 0, 15), (5, 10) mismatch) x: array([], shape=(5, 0, 15), dtype=float64) y: array([[0.978252, 0.815343, 0.715182, 0.892132, 0.4692 , 0.583503, 0.210463, 0.231392, 0.82408 , 0.236201], [0.282879, 0.522247, 0.077234, 0.756388, 0.906791, 0.479369,...
test (3.8): tests/bdata/test_bdata.py#L154
TestBdata.test_vmap_add_get AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.8): tests/bdata/test_bdata.py#L164
TestBdata.test_vmap_add_insufficient_vmap AssertionError: ValueError not raised
test (3.8): tests/bdata/test_bdata.py#L172
TestBdata.test_vmap_add_same_map AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.8): tests/bdata/test_bdata.py#L224
TestBdata.test_vmap_add_unnecessary_vmap AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
Error code: `import-untyped`: bdpy/fig/tile_images.py#L4
Library stubs not installed for "PIL"
Error code: `import-untyped`: bdpy/fig/tile_images.py#L5
Skipping analyzing "matplotlib.pyplot": module is installed, but missing library stubs or py.typed marker
Error code: `import-untyped`: bdpy/fig/tile_images.py#L5
Skipping analyzing "matplotlib": module is installed, but missing library stubs or py.typed marker
Error code: `import-untyped`: bdpy/fig/tile_images.py#L6
Skipping analyzing "matplotlib.gridspec": module is installed, but missing library stubs or py.typed marker
Error code: `import-untyped`: bdpy/util/info.py#L13
Library stubs not installed for "yaml"
Error code: `arg-type`: bdpy/util/info.py#L24
Argument 1 to "md5" has incompatible type "str"; expected "Buffer"
Error code: `var-annotated`: bdpy/util/utils.py#L48
Need type annotation for "group_vector" (hint: "group_vector: List[<type>] = ...")
Error code: `assignment`: bdpy/util/utils.py#L64
Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "List[Any]")
Error code: `union-attr`: bdpy/util/utils.py#L118
Item "List[Any]" of "Union[List[Any], ndarray[Any, Any]]" has no attribute "ndim"
Error code: `call-overload`: bdpy/util/utils.py#L119
No overload variant of "__getitem__" of "list" matches argument type "List[Any]"
test (3.9): tests/test_mri.py#L23
TestMri.test_add_load_epi_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.9): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.9): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0002 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.9): tests/bdata/test_bdata.py#L31
TestBdata.test_add_get AssertionError: Arrays are not equal (shapes (5, 0, 38), (5, 10) mismatch) x: array([], shape=(5, 0, 38), dtype=float64) y: array([[1.262181e-02, 5.764180e-01, 1.257862e-01, 7.566924e-01, 7.982901e-01, 1.658114e-01, 2.160290e-01, 3.509436e-01, 4.424498e-04, 7.499394e-01],...
test (3.9): tests/bdata/test_bdata.py#L88
TestBdata.test_metadata_add_get_where AssertionError: Arrays are not equal (shapes (0, 18), (10,) mismatch) x: array([], shape=(0, 18), dtype=float64) y: array([0.624982, 0.211365, 0.300357, 0.72676 , 0.119952, 0.091536, 0.541732, 0.642813, 0.721037, 0.057317])
test (3.9): tests/bdata/test_bdata.py#L126
TestBdata.test_select AssertionError: Arrays are not equal (shapes (5, 0, 15), (5, 10) mismatch) x: array([], shape=(5, 0, 15), dtype=float64) y: array([[0.014954, 0.329343, 0.223366, 0.793825, 0.622305, 0.517982, 0.540887, 0.477174, 0.035943, 0.168282], [0.424294, 0.544264, 0.256443, 0.065381, 0.449204, 0.30005 ,...
test (3.9): tests/bdata/test_bdata.py#L154
TestBdata.test_vmap_add_get AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.9): tests/bdata/test_bdata.py#L163
TestBdata.test_vmap_add_insufficient_vmap AssertionError: ValueError not raised
test (3.9): tests/bdata/test_bdata.py#L172
TestBdata.test_vmap_add_same_map AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.9): tests/bdata/test_bdata.py#L224
TestBdata.test_vmap_add_unnecessary_vmap AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.11)
File "/home/runner/work/bdpy/bdpy/pytest-coverage.txt" doesn't exist
test (3.10)
File "/home/runner/work/bdpy/bdpy/pytest-coverage.txt" doesn't exist
test (3.11)
File "/home/runner/work/bdpy/bdpy/pytest.yml" doesn't exist
test (3.10)
File "/home/runner/work/bdpy/bdpy/pytest.yml" doesn't exist
type-check: bdpy/util/utils.py#L119
Possible overload variants:
type-check: bdpy/util/utils.py#L121
Possible overload variants:
type-check: bdpy/dataset/utils.py#L11
Hint: "python3 -m pip install types-tqdm"
type-check: bdpy/dataset/utils.py#L11
(or run "mypy --install-types" to install all missing stub packages)
type-check: bdpy/dataset/utils.py#L11
See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Error code: `annotation-unchecked`: bdpy/dataform/features.py#L382
By default the bodies of untyped functions are not checked, consider using --check-untyped-defs