-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Extend exception-related checks to except*
#9197
Extend exception-related checks to except*
#9197
Conversation
β¦ntless-statement message on try-clause body
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.
I have a nit but this is going straight into 3.1.0, great work :)
Co-authored-by: Pierre Sassoulas <[email protected]>
thank you! and thanks for the suggested change, I wasn't aware of that syntax and it looks so much better with less repeated code :-) |
except*
This comment has been minimized.
This comment has been minimized.
β¦ble to specify only testing try* for Python 3.11 and higher
β¦ess testing failures
β¦5/pylint into issue8827_exceptstar
This comment has been minimized.
This comment has been minimized.
Head branch was pushed to by a user without write access
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #9197 +/- ##
=======================================
Coverage 95.79% 95.79%
=======================================
Files 173 173
Lines 18718 18720 +2
=======================================
+ Hits 17931 17933 +2
Misses 787 787
|
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 400c41d |
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.
Thank you for your contribution, congrats on becoming a pylint contributor π
Type of Changes
Description
Modify exceptions.py checks to detect
try-except*
blocks and treat the same astry-except
.Also updated basic_checker.py so that
try-except*
blocks are not flagged as "pointless-statement"Functional tests for
broad-exception-caught
andbroad-exception-raised
were updated to includetry-except*
. All tests passed locally withpytest
,tox
, andprimer
.Closes #8827