Skip to content

customs v0.4.0: no unused imports - #544

Merged
winding-lines merged 1 commit into
mainfrom
unused-imports
Nov 18, 2026
Merged

winding-lines merged 1 commit into
mainfrom
unused-imports

Conversation

@winding-lines

Copy link
Copy Markdown
Contributor

Moves CI to customs v0.4.0, which adds unused-import: every name a file imports is used in it, outside a package's __init__.mojo (guide).

  • The compatibility shims, modules that define nothing and only pass names on, become packages (x.mojo -> x/__init__.mojo, relative imports one dot deeper), where re-exports are allowed. Their import paths don't change:
    • morca._internal.batches
    • morca._internal.live
    • morca.cli
    • morca.handover
    • morca.pressure
    • morca.sqlite_store
    • morca.state
  • Every other unused import is removed. Nothing else changes.

No other magmalake or morca-dev repository imports any of these names through the module that drops it.

🤖 Generated with Claude Code

@winding-lines winding-lines added the no-changelog Needs no changelog fragment (CI, docs or tests only) label Nov 18, 2026
customs v0.4.0 adds unused-import. 81 unused imports removed; the seven shims that only pass names on (morca.cli, handover, pressure, sqlite_store, state, _internal.batches, _internal.live) become packages, with the same import paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@winding-lines
winding-lines merged commit 84039dd into main Nov 18, 2026
35 checks passed
@winding-lines
winding-lines deleted the unused-imports branch November 18, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Needs no changelog fragment (CI, docs or tests only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant