feat: add __main__.py for local CLI execution#465
Conversation
Enables `PYTHONPATH=src python -m agentready` to run the CLI from the local source tree, bypassing whichever editable install is active. Useful when multiple checkouts exist and only one can own the `agentready` entry point at a time. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds a Python module entrypoint ( ChangesCLI Entrypoint and Documentation
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📉 Test Coverage Report
Coverage calculated from unit tests only |
Summary
src/agentready/__main__.pyso the CLI can be run viaPYTHONPATH=src python -m agentready, bypassing the installed entry pointCLAUDE.mdto document the local development invocation patternMotivation
When multiple editable installs of agentready exist (e.g.,
git/agentreadyandgit/reviews/agentready), only one can own theagentreadyCLI entry point at a time. RunningPYTHONPATH=src python -m agentreadyalways uses the local source tree, eliminating confusion about which checkout is active.Test plan
PYTHONPATH=src python -m agentready assess .runs successfullyblack . && isort . && ruff check .passespytestpasses (1238 passed, 21 skipped)Posted by Bill Murdock with assistance from Claude Code.
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
Documentation
Chores