You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think false positives like those reported in #356 (and probably some false negatives as well) are prevalent across multiple lints and one way to solve them would be to use some form of import tracking.
I've come up with some examples below, but this is just a very rough draft.
Then in the lint to get the itertools id you'd use imported_modules["itertools"]["name"], and to get the groupby id you'd use imported_modules["itertools"]["imports"]["groupby"].
Is this something that we would be interested in adding?
The text was updated successfully, but these errors were encountered:
So, just so I understand, you just want to make a generic API to add import tracking to multiple checks in a central place? Any other main goals I missed here?
I think false positives like those reported in #356 (and probably some false negatives as well) are prevalent across multiple lints and one way to solve them would be to use some form of import tracking.
I've come up with some examples below, but this is just a very rough draft.
from itertools import groupby
from itertools import groupby as groupby_as
import itertools
import itertools as itertools_as
Then in the lint to get the
itertools
id you'd useimported_modules["itertools"]["name"]
, and to get thegroupby
id you'd useimported_modules["itertools"]["imports"]["groupby"]
.Is this something that we would be interested in adding?
The text was updated successfully, but these errors were encountered: