-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Introduce pre-commit. #617
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #617 +/- ##
==========================================
- Coverage 90.62% 90.42% -0.20%
==========================================
Files 20 20
Lines 3561 3560 -1
==========================================
- Hits 3227 3219 -8
- Misses 334 341 +7 |
from ._sparse_array import SparseArray | ||
from ._utils import equivalent |
Check notice
Code scanning / CodeQL
Cyclic import
|
||
import numpy as np | ||
import scipy.sparse as ss | ||
|
||
from ._umath import elemwise | ||
from ._utils import _zero_of_dtype, html_table, equivalent, normalize_axis | ||
from ._utils import _zero_of_dtype, equivalent, html_table, normalize_axis |
Check notice
Code scanning / CodeQL
Cyclic import
from itertools import zip_longest | ||
|
||
from ._utils import isscalar, equivalent, _zero_of_dtype | ||
from ._utils import _zero_of_dtype, equivalent, isscalar |
Check notice
Code scanning / CodeQL
Cyclic import
from ._dok import DOK | ||
from ._sparse_array import SparseArray |
Check notice
Code scanning / CodeQL
Cyclic import
from numpy.core._exceptions import UFuncTypeError | ||
|
||
from .core import COO, as_coo |
Check notice
Code scanning / CodeQL
Cyclic import
) | ||
from .indexing import getitem |
Check notice
Code scanning / CodeQL
Cyclic import
import operator | ||
|
||
import sparse |
Check notice
Code scanning / CodeQL
Module is imported with 'import' and 'import from'
from .._umath import _cartesian_product | ||
from .core import COO |
Check notice
Code scanning / CodeQL
Cyclic import
Pretty sure the docs build caught everything. |
@@ -720,7 +716,7 @@ | |||
def test_no_deprecation_warning(): | |||
a = np.array([1, 2]) | |||
s = sparse.COO(a, a, shape=(3,)) | |||
s == s | |||
assert_eq(s == s, np.broadcast_to(True, s.shape)) |
Check warning
Code scanning / CodeQL
Comparison of identical values
|
||
from ._coo.common import asCOO |
Check notice
Code scanning / CodeQL
Cyclic import
@@ -935,15 +918,21 @@ | |||
array([[ 2, 3], | |||
[ 6, 11]], dtype=int64) | |||
""" | |||
from .._common import dot |
Check notice
Code scanning / CodeQL
Cyclic import
return dot(self, other) | ||
|
||
def __matmul__(self, other): | ||
from .._common import matmul |
Check notice
Code scanning / CodeQL
Cyclic import
try: | ||
return matmul(self, other) | ||
except NotImplementedError: | ||
return NotImplemented | ||
|
||
def __rmatmul__(self, other): | ||
from .._common import matmul |
Check notice
Code scanning / CodeQL
Cyclic import
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
No description provided.