-
Notifications
You must be signed in to change notification settings - Fork 529
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
style: enable B904 #3956
style: enable B904 #3956
Conversation
As planned in deepmodeling#3933 (comment) Signed-off-by: Jinzhe Zeng <[email protected]>
WalkthroughWalkthroughThe latest changes involve improving exception handling across various modules. The main updates include appending the original exceptions as context using Changes
Sequence Diagram(s)The changes are primarily focused on exception handling improvements, which do not significantly affect the control flow or introduce new features. Therefore, generating sequence diagrams does not apply in this context. 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 (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #3956 +/- ##
==========================================
- Coverage 82.83% 82.83% -0.01%
==========================================
Files 520 520
Lines 50832 50832
Branches 3011 3015 +4
==========================================
- Hits 42109 42106 -3
Misses 7790 7790
- Partials 933 936 +3 ☔ View full report in Codecov by Sentry. |
|
Fix in #3957 |
As planned in deepmodeling#3933 (comment) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved exception handling across multiple modules to provide more context in error messages. - **Chores** - Added rule `B904` for `raise-without-from-inside-except` to `pyproject.toml`. These changes enhance debugging by offering clearer error messages and context, thus improving the overall user experience when dealing with exceptions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]>
As planned in #3933 (comment)
Summary by CodeRabbit
Bug Fixes
Chores
B904
forraise-without-from-inside-except
topyproject.toml
.These changes enhance debugging by offering clearer error messages and context, thus improving the overall user experience when dealing with exceptions.