-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix false negative for deprecated-module
when a __import__
method is used instead of import
sentence
#10454
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
Fix false negative for deprecated-module
when a __import__
method is used instead of import
sentence
#10454
Conversation
5e00cc3
to
a246d1a
Compare
@Pierre-Sassoulas What do you think? Regards! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10454 +/- ##
=======================================
Coverage 95.88% 95.88%
=======================================
Files 176 176
Lines 19140 19142 +2
=======================================
+ Hits 18352 18354 +2
Misses 788 788
🚀 New features to boost your workflow:
|
e994e91
to
e336aa5
Compare
deprecated-module
when a __import__
method is used instead of import
sentence
This comment has been minimized.
This comment has been minimized.
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.
Look great, this is going in 4.0 :)
… is used instead of `import` sentence. Using the following python code style ```python __import__("deprecated_module") ``` The deprecated-module is ignored since that it expects ```python import deprecated_module ``` This change adds the posibility to process these kind of style too This style is used from popular auto-code snippets: - https://github.com/honza/vim-snippets/blob/f0a3184/snippets/python.snippets#L209 Fix pylint-dev#10453
e336aa5
to
b4dc60c
Compare
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉 This comment was generated for commit b4dc60c |
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.
Nice!
Using the following python code style
The deprecated-module is ignored since that it expects
This change adds the posibility to process these kind of style too
This style is used from popular auto-code snippets:
Type of Changes
Description
Closes #10453