Skip to content

Commit 6a5ce7e

Browse files
author
Vahid Tavanashad
committed
fix code spell issues
1 parent f8083da commit 6a5ce7e

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ repos:
4747
rev: v2.4.1
4848
hooks:
4949
- id: codespell
50+
args: ["-L", "abd"] # ignore "abd" used in einsum tests
5051
additional_dependencies:
5152
- tomli
5253
- repo: https://github.com/psf/black

dpnp/tests/third_party/cupy/math_tests/test_sumprod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def test_cub_cumprod(self, xp, dtype):
376376
return self._mitigate_cumprod(xp, dtype, result)
377377

378378
def _mitigate_cumprod(self, xp, dtype, result):
379-
# for testing cumprod against complex arrays, the gotcha is CuPy may
379+
# for testing cumprod against complex arrays, the catch is CuPy may
380380
# produce only Inf at the position where NumPy starts to give NaN. So,
381381
# an error would be raised during assert_allclose where the positions
382382
# of NaNs are examined. Since this is both algorithm and architecture

dpnp/tests/third_party/intel/zero-copy-test1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ def __init__(self, shape, dtype="d", host_buffer=None):
1717
shmem.copy_from_host(host_buffer.view(dtype="|u1"))
1818
self.arr = np.ndarray(shape, dtype=dtype, buffer=shmem)
1919

20-
def __getitem__(self, indx):
21-
return self.arr[indx]
20+
def __getitem__(self, index):
21+
return self.arr[index]
2222

23-
def __setitem__(self, indx, val):
24-
self.arr.__setitem__(indx, val)
23+
def __setitem__(self, index, val):
24+
self.arr.__setitem__(index, val)
2525

2626
@property
2727
def __sycl_usm_array_interface__(self):

0 commit comments

Comments
 (0)