-
Couldn't load subscription status.
- Fork 22
Warning Message for users using old versions #701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
@Saga4 , we can't accept these changes unless @mihikap01 signs the CLA above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some small changes,
also I think it's a lot of test cases, maybe 1 or 2 would do, besides they are failing for some reason
| if latest_parsed.major > current_parsed.major or ( | ||
| latest_parsed.major == current_parsed.major and latest_parsed.minor > current_parsed.minor | ||
| ): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
personally, I prefer checking if latest_version < __version__ (major or minor)
@Saga4 what do you think ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
< > == work here, i'll make that modification
⚡️ Codeflash found optimizations for this PR📄 400% (4.00x) speedup for
|
|
@mihikap01 Thank you for your effort :) |
User description
Closes ##631
closes #https://linear.app/codeflash-ai/issue/CF-700/print-a-warning-if-the-current-codeflash-version-is-not-the-latest
PR Type
Enhancement, Tests
Description
Add utilities to fetch and cache latest PyPI version
Notify users of newer minor or major releases
Integrate version check on CLI startup
Add comprehensive unit tests for version checking
Diagram Walkthrough
File Walkthrough
version_check.py
Add version check utilitiescodeflash/code_utils/version_check.py
get_latest_version_from_pypi()with 1h cachecheck_for_newer_minor_version()logicmain.py
Integrate version check in maincodeflash/main.py
check_for_newer_minor_version()at startuptest_version_check.py
Add tests for version checktests/test_version_check.py