Skip to content

feat: hoist the imports to the top of Dump & Quit - #337

Merged
henryiii merged 1 commit into
mainfrom
feat/dump-hoist-imports
Nov 21, 2026
Merged

henryiii merged 1 commit into
mainfrom
feat/dump-hoist-imports

Conversation

@henryiii

Copy link
Copy Markdown
Member

🤖 AI text below 🤖

Dump & Quit now puts all imports at the top of the source, without duplicates, and sorted like isort (standard library first, import before from). Indented imports stay in place. The two-file import dedupe in dump_header is removed, because the hoist step does it now.

Collect the top-level imports of the dumped source, remove duplicates,
and sort them like isort (standard library first).

Assisted-by: ClaudeCode:claude-opus-5-5
@henryiii
henryiii merged commit ff5e698 into main Nov 21, 2026
12 checks passed
@henryiii
henryiii deleted the feat/dump-hoist-imports branch November 21, 2026 04:52
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