-
-
Notifications
You must be signed in to change notification settings - Fork 7
Conversation
Codecov Report
@@ Coverage Diff @@
## main #17 +/- ##
==========================================
+ Coverage 84.70% 85.58% +0.88%
==========================================
Files 26 26
Lines 340 340
==========================================
+ Hits 288 291 +3
+ Misses 52 49 -3
Continue to review full report at Codecov.
|
tests/namespace_usage_test.py
Outdated
( | ||
pytest.param( | ||
"from pandas import Categorical\n" | ||
"import pandas as pd\n" | ||
"\n" | ||
"cat1 = Categorical()\n" | ||
"cat2 = pd.Categorical()\n", | ||
"5:7: PDF011 found both 'pd.foo' and 'foo' in the same file", | ||
id="One is accessed from pd, the other is imported from pandas", | ||
), | ||
), |
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.
Awesome!
Can we add an extra test in which we have
import pandas
from pandas import Categorical
cat1 = Categorical()
cat2 = pandas.Categorical()
?
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.
if it doesn't pass, that's OK, let me know and I'll open a new issue for it and we can merge this one as it is
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.
Thanks! Just added it.
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.
Awesome, thank you @leetaiying !
Thank you @MarcoGorelli!! |
Closing issue #13.