Skip to content

Fix build on main#65

Merged
DRMacIver merged 3 commits intomainfrom
DRMacIver/cleanups
Apr 10, 2026
Merged

Fix build on main#65
DRMacIver merged 3 commits intomainfrom
DRMacIver/cleanups

Conversation

@DRMacIver
Copy link
Copy Markdown
Owner

@DRMacIver DRMacIver commented Apr 10, 2026

Follow on to #64 - I failed to notice a failed push and as a result merged an earlier version of the work.

Further, it turns out the build was already failing on main, so this PR also fixes those problems.

@DRMacIver DRMacIver changed the title Some cleanups I accidentally merged without Fix build on main Apr 10, 2026
DRMacIver and others added 2 commits April 10, 2026 12:45
Adds scripts/fix_function_imports.py, a libcst-based tool that
automatically moves imports from inside functions to module level,
respecting # noqa: no-import-in-function suppressions. Runs before
ruff in `just format` so ruff can deduplicate and sort the hoisted
imports.

Also fixes the two existing violations in __main__.py and test_state.py,
and updates monkeypatch targets in test_main.py to match the new import
locations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@DRMacIver DRMacIver merged commit 9e55fce into main Apr 10, 2026
23 checks passed
@DRMacIver DRMacIver deleted the DRMacIver/cleanups branch April 10, 2026 12:02
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