From 18f3d55fb261d37e857bac2bd9f51a7d4aa5b696 Mon Sep 17 00:00:00 2001 From: Alexandru Rotaru Date: Fri, 19 Jun 2026 16:28:54 +0200 Subject: [PATCH] Fix CI lint: drop unused ledgers import + duplicate torchvision import `eca9e25` removed the `hp = ledgers.get_hyperparams()` call in the ws-classification example but left the now-unused `from weightslab.backend import ledgers` import, tripping ruff F401 in CI. Also drop the exact-duplicate `from torchvision import datasets, transforms` line (ruff F811). Both `datasets` and `transforms` remain used. Co-Authored-By: Claude Opus 4.8 --- weightslab/examples/PyTorch/ws-classification/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/weightslab/examples/PyTorch/ws-classification/main.py b/weightslab/examples/PyTorch/ws-classification/main.py index 8f2ec0d0..1547e1f7 100644 --- a/weightslab/examples/PyTorch/ws-classification/main.py +++ b/weightslab/examples/PyTorch/ws-classification/main.py @@ -20,11 +20,9 @@ from torchvision import datasets, transforms from torchmetrics.classification import Accuracy -from torchvision import datasets, transforms from torch.utils.data import Dataset import weightslab as wl -from weightslab.backend import ledgers from weightslab.baseline_models.pytorch.models import FashionCNN as CNN from weightslab.components.global_monitoring import ( guard_training_context,