Skip to content

Commit 6112db7

Browse files
authored
Merge branch 'main' into dependabot/github_actions/astral-sh/setup-uv-7.3.0
2 parents 2673df5 + 1993d3c commit 6112db7

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

.github/workflows/static_code_checks.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
# keras>=3.12.0 which needs tensorflow>=2.16, but we're pinning to tensorflow 2.15 due to tensorflow-io
5656
# compatibility constraints.
5757
# CVE-2026-0994 is a protobuff vulnerability without a fix yet.
58+
# CVE-2026-26007 is a cryptography vulnerability that requires cryptography>=46.0.5, but flwr (flower)
59+
# requires cryptography<45.0.0, blocking the upgrade.
60+
# CVE-2026-25990 is a pillow vulnerability that requires pillow>=12.1.1, pending dependency resolution.
5861
ignore-vulns: |
5962
GHSA-3749-ghw9-m3mg
6063
GHSA-887c-mr87-cxwp
@@ -65,6 +68,8 @@ jobs:
6568
CVE-2025-12058
6669
CVE-2025-12060
6770
CVE-2026-0994
71+
CVE-2026-26007
72+
CVE-2026-25990
6873
6974
# Deleting some temporary files and useless folders to free up space
7075
# Deleting /usr/share/dotnet should clear ~4GB of space.

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/uv-pre-commit
3-
rev: 0.9.28
3+
rev: 0.10.0
44
hooks:
55
- id: uv-lock
66

@@ -26,7 +26,7 @@ repos:
2626
- id: check-toml
2727

2828
- repo: https://github.com/astral-sh/ruff-pre-commit
29-
rev: 'v0.14.14'
29+
rev: 'v0.15.0'
3030
hooks:
3131
- id: ruff-check
3232
args: [--fix, --exit-non-zero-on-fix]

examples/ae_examples/cvae_examples/mlp_cvae_example/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def get_data_loaders(self, config: Config) -> tuple[DataLoader, DataLoader]:
4949
sampler = DirichletLabelBasedSampler(list(range(10)), sample_percentage=0.75, beta=100)
5050
# ToTensor transform is used to make sure pixels stay in the range [0.0, 1.0].
5151
# Flattening the image data to match the input shape of the model.
52-
flatten_transform = transforms.Lambda(lambda x: torch.flatten(x))
52+
flatten_transform = transforms.Lambda(torch.flatten)
5353
transform = transforms.Compose([ToNumpy(), transforms.ToTensor(), flatten_transform])
5454
train_loader, val_loader, _ = load_mnist_data(
5555
data_dir=self.data_path,

fl4health/feature_alignment/string_columns_transformer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def fit(self, x: pd.DataFrame, y: pd.DataFrame | None = None) -> TextMulticolumn
2929
Returns:
3030
(TextMulticolumnTransformer): The fit transformer
3131
"""
32-
joined_x = x.apply(lambda x: " ".join(x), axis=1)
32+
joined_x = x.apply(" ".join, axis=1)
3333
self.transformer.fit(joined_x)
3434
return self
3535

@@ -43,7 +43,7 @@ def transform(self, x: pd.DataFrame) -> pd.DataFrame:
4343
Returns:
4444
(pd.DataFrame): Transformed dataframe.
4545
"""
46-
joined_x = x.apply(lambda x: " ".join(x), axis=1)
46+
joined_x = x.apply(" ".join, axis=1)
4747
return self.transformer.transform(joined_x)
4848

4949

fl4health/utils/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ def decode_and_pseudo_sort_results(
105105
(client_proxy, parameters_to_ndarrays(fit_res.parameters), fit_res.num_examples)
106106
for client_proxy, fit_res in results
107107
]
108-
return sorted(ndarrays_results, key=lambda x: pseudo_sort_scoring_function(x))
108+
return sorted(ndarrays_results, key=pseudo_sort_scoring_function)

tests/metrics/compound_metrics/transforms_metric_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_multiple_transforms_metric_computation() -> None:
9090
accuracy_metric = AccuracyForTest("accuracy")
9191
transform_accuracy_metric = TransformsMetric(
9292
accuracy_metric,
93-
[lambda x: x + 1.0, lambda x: binarize(x)],
93+
[lambda x: x + 1.0, binarize],
9494
[lambda x: x + 1.0, lambda x: x - 1.0],
9595
)
9696

0 commit comments

Comments
 (0)