-
Notifications
You must be signed in to change notification settings - Fork 80
Feat: Add mechanism to disable external version checks (PyPI API call… #737
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
base: main
Are you sure you want to change the base?
Feat: Add mechanism to disable external version checks (PyPI API call… #737
Conversation
…s) for air-gapped environments Fixes Lightning-AI#734
for more information, see https://pre-commit.ci
The tests is made by copilot. Seems overtesting but I can delete unnecessary checks if requested. |
Hey @sanggusti Thanks for your first contributions. I am curious to hear what you are using LitData for. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #737 +/- ##
===================================
Coverage 80% 80%
===================================
Files 52 52
Lines 7330 7334 +4
===================================
+ Hits 5868 5876 +8
+ Misses 1462 1458 -4 🚀 New features to boost your workflow:
|
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.
Thanks for the pr, @sanggusti! I’ve added a few suggestions.
Please feel free to reach out if you have any questions.
for more information, see https://pre-commit.ci
…n_and_prompt_upgrade`
Hi @tchaton ! I was looking for a tool for curating/transforming/streaming data for my medical llm finetuning project, and it happens that I'm a fan of lightning. I've just used litdata for the past week and even though I can't use lightning cloud (Indonesia(+62) is not supported yet) I happen to find some issue that I think I can contribute. |
… check and parsing current version Co-authored-by: Deependu <[email protected]>
Co-authored-by: Deependu <[email protected]>
Fixes #734
Add mechanism to disable external version checks to address #734
What does this PR do?
Fixes #734 . Implemented optional environment variable
LITDATA_DISABLE_VERSION_CHECK=1
that, when set, skips the PyPI API calls entirely. This prevents delays, timeouts, and unexpected network activity in restricted environments while maintaining backward compatibility (i.e., the default behavior remains unchanged unless the flag is explicitly enabled).PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃