Skip to content

Commit

Permalink
Add mypy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruruthia committed Sep 27, 2024
1 parent 74baf71 commit 9ce7ca8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ jobs:
- name: Test with pytest
run: |
docker run --rm cvdm-package:${{ matrix.python-version }} pytest
# Step 5: Run the container and execute tests using mypy
- name: Test with mypy
run: |
docker run --rm cvdm-package:${{ matrix.python-version }} mypy .
1 change: 1 addition & 0 deletions cvdm/utils/inference_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def create_output_montage(
(pred_y, y, gamma_vec),
axis=2,
)
print(concatenated_images.shape)
image: np.ndarray = montage(
np.squeeze(concatenated_images),
channel_axis=channel_axis,
Expand Down

0 comments on commit 9ce7ca8

Please sign in to comment.