-
Notifications
You must be signed in to change notification settings - Fork 135
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
pref: lazy import modules #658
Conversation
Fix deepmodeling#526. Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
WalkthroughThe changes across the Changes
Assessment against linked issues
These changes effectively address the primary objective of reducing the import time for the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
for more information, see https://pre-commit.ci
CodSpeed Performance ReportMerging #658 will not alter performanceComparing Summary
|
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #658 +/- ##
==========================================
+ Coverage 83.63% 83.86% +0.22%
==========================================
Files 81 81
Lines 7009 6996 -13
==========================================
+ Hits 5862 5867 +5
+ Misses 1147 1129 -18 ☔ View full report in Codecov by Sentry. |
For the unknown reason, the benchmark doesn't work at all... |
Fix #526.
Summary by CodeRabbit
Refactor
New Features
TYPE_CHECKING
for better resource management and efficiency.from_dict
to theSystem
class for constructing instances from a data dictionary.Chores
pyproject.toml
to includeTID253
for banned module-level imports.Style
# noqa: TID253
comments to specific import statements to adhere to new linting rules and ensure clean code styling.