feat(src): Resolve imports and create sloppy.py entry point
This commit is contained in:
@@ -12,16 +12,8 @@
|
||||
- [ ] Task: Conductor - User Manual Verification 'Phase 2: Directory Restructuring & Migration' (Protocol in workflow.md)
|
||||
|
||||
## Phase 3: Entry Point & Import Resolution
|
||||
- [ ] Task: Create `sloppy.py` Entry Point
|
||||
- [ ] WHERE: Project root (`sloppy.py`)
|
||||
- [ ] WHAT: Create the script to act as the primary launch point. It should import `App` from `src.gui_2` and pass CLI args.
|
||||
- [ ] HOW: Write a standard Python script wrapper.
|
||||
- [ ] SAFETY: Ensure it correctly propagates `sys.argv`.
|
||||
- [ ] Task: Resolve Absolute and Relative Imports
|
||||
- [ ] WHERE: `src/*.py`, `tests/*.py`, `simulation/*.py`
|
||||
- [ ] WHAT: Update import statements. E.g., `import gui_2` becomes `from src import gui_2` or adjust `sys.path.append` in tests.
|
||||
- [ ] HOW: Surgical string replacements. Ensure `pytest` can still find fixtures and test modules.
|
||||
- [ ] SAFETY: Run `uv run pytest` to aggressively check for `ModuleNotFoundError`s.
|
||||
- [x] Task: Create `sloppy.py` Entry Point
|
||||
- [x] Task: Resolve Absolute and Relative Imports
|
||||
- [ ] Task: Conductor - User Manual Verification 'Phase 3: Entry Point & Import Resolution' (Protocol in workflow.md)
|
||||
|
||||
## Phase 4: Final Validation & Documentation
|
||||
|
||||
Reference in New Issue
Block a user