Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/static_code_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ jobs:
# GHSA-3749-ghw9-m3mg and GHSA-887c-mr87-cxwp are pytorch vulnerabilities that require 2.7 and 2.8 but we're
# pinning to 2.6.0 for now.
# GHSA-wf7f-8fxf-xfxc ML Flow vulnerability in deserialization that hasn't been patched yet.
# CVE-2025-53000 NBConvert issue, no fix yet.
ignore-vulns: |
GHSA-3749-ghw9-m3mg
GHSA-887c-mr87-cxwp
GHSA-wf7f-8fxf-xfxc
CVE-2025-53000

# Deleting some temporary files and useless folders to free up space in order to have space for
# the cache file, and printing the disk space info at the beggining and end.
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
- id: check-toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.14.9'
rev: 'v0.14.10'
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
Expand Down
3 changes: 2 additions & 1 deletion fl4health/datasets/rxrx1/preprocess.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import os
import pickle
from collections.abc import Hashable
from pathlib import Path
from typing import Any

Expand All @@ -24,7 +25,7 @@ def filter_and_save_data(metadata: pd.DataFrame, top_sirna_ids: list[int], cell_
filtered_metadata.to_csv(output_path, index=False)


def load_image(row: dict[str, Any], root: Path) -> torch.Tensor:
def load_image(row: dict[Hashable, Any], root: Path) -> torch.Tensor:
"""
Load an image tensor for a given row of metadata.

Expand Down
Loading