Skip to content

Fix CI lint: drop unused ledgers import + duplicate torchvision import#223

Merged
AlexGrayBox merged 1 commit into
devfrom
fix-example-unused-import
Jun 20, 2026
Merged

Fix CI lint: drop unused ledgers import + duplicate torchvision import#223
AlexGrayBox merged 1 commit into
devfrom
fix-example-unused-import

Conversation

@AlexGrayBox

Copy link
Copy Markdown
Member

What

Fixes the ruff F401 that currently fails code-quality CI on every branch (the lint job scans the whole ./weightslab tree).

  • eca9e25 removed the hp = ledgers.get_hyperparams() call in ws-classification/main.py but left from weightslab.backend import ledgers → unused import (F401).
  • Also drops the exact-duplicate from torchvision import datasets, transforms line (F811). Both datasets and transforms remain used.

Two-line change; unblocks CI for all open PRs (e.g. #221).

🤖 Generated with Claude Code

`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 <noreply@anthropic.com>
@AlexGrayBox AlexGrayBox merged commit 46d8987 into dev Jun 20, 2026
14 checks passed
@AlexGrayBox AlexGrayBox deleted the fix-example-unused-import branch June 20, 2026 14:52
@AlexGrayBox AlexGrayBox restored the fix-example-unused-import branch June 20, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant