🧹 Remove unused import 'main' from mempalace/__init__.py#827
Conversation
Removed the 'main' import from `mempalace/__init__.py` and updated `pyproject.toml` to point the script entry point directly to `mempalace.cli:main`. This ensures the CLI remains functional while improving code hygiene. Co-authored-by: igorls <[email protected]>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
🎯 What: Removed the unused import
mainfrommempalace/__init__.pyand removed it from__all__. Updatedpyproject.tomlto point themempalacescript tomempalace.cli:main.💡 Why:
mempalace/__init__.pyshould only contain package-level initialization.mainwas only used as a script entry point. Moving the entry point target to the implementation module reduces unnecessary imports when the package is used programmatically.✅ Verification:
pyproject.tomlandmempalace/__init__.pychanges withread_file.ruff check mempalace/__init__.py(passed).python -m mempalace --helpstill works as expected.from mempalace import mainnow fails, whilefrom mempalace.cli import mainstill works.✨ Result: Cleaner package initialization and improved maintainability.
PR created automatically by Jules for task 11480774650305903580 started by @igorls