| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Wrap __version__ in try/except so that importing commit-check does not crash in development environments where the package has not been pip installed (e.g. running directly via uv or python -m). Falls back to '0.0.0.dev'.
✅ Deploy Preview for commit-check ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Sorry, something went wrong.
|
Warning Review limit reached@shenxianpeng, you've reached your PR review limit, so we couldn't start this review. Next review available in: 54 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR. To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 71fa37b5-5bf8-41f7-b866-90151769b53f 📥 CommitsReviewing files that changed from the base of the PR and between e12ced7 and 5b94a42. 📒 Files selected for processing (1)
WalkthroughThe package version lookup now catches missing distribution metadata and falls back to "0.0.0.dev" during module import. ChangesPackage version initialization
Estimated code review effort: 2 (Simple) | ~5 minutes 🚥 Pre-merge checks | ✅ 5 ✅ Passed checks (5 passed)
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. ❤️ ShareComment @coderabbitai help to get the list of available commands. |
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #483 +/- ##
==========================================
- Coverage 97.45% 97.29% -0.17%
==========================================
Files 12 12
Lines 1179 1182 +3
==========================================
+ Hits 1149 1150 +1
- Misses 30 32 +2 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
|
Sorry, something went wrong.
Merging this PR will not alter performance✅ 380 untouched benchmarks Performance Changes
Comparing bugfix/fix-version-crash-uninstalled (5b94a42) with main (5a3dd93) Footnotes
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
When importing commit_check in a development environment where the package hasn't been pip install-ed (e.g., running directly with uv or python -m), importlib.metadata.version("commit-check") raises PackageNotFoundError, causing the entire import to crash.
Changes
Tests
Added tests/version_test.py with two test cases:
Verification