-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
remove unused cimport, parametrize test #21710
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
Conversation
@@ -16,8 +16,6 @@ cimport numpy as cnp | |||
from numpy cimport ndarray, uint8_t | |||
cnp.import_array() | |||
|
|||
cimport util |
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.
do you have a linter that catches this?
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.
We've discussed this a couple times and haven't found a good solution for this. It's on my list to bring up with the group at the sprint.
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.
right, just asking if you found a soln!
def f(self): | ||
sparse_op = getattr(splib, 'sparse_%s_float64' % op) | ||
python_op = getattr(operator, op) | ||
@pytest.mark.parametrize('opname', |
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.
worth making a fixture in conftest?
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 think this is a pretty specific set of strings that wouldn't get used often. But I didn't look at this closely, just saw that the existing formatting was crying out to be updated.
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.
ok, that's fine
Codecov Report
@@ Coverage Diff @@
## master #21710 +/- ##
=========================================
Coverage ? 91.9%
=========================================
Files ? 158
Lines ? 49690
Branches ? 0
=========================================
Hits ? 45670
Misses ? 4020
Partials ? 0
Continue to review full report at Codecov.
|
thanks @jbrockmendel |
No description provided.