Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 830cb0e

Browse filesBrowse files
committed
Add inplace ignoring of flake8 warnings
1 parent bc795b8 commit 830cb0e
Copy full SHA for 830cb0e

File tree

Expand file treeCollapse file tree

2 files changed

+6
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-8
lines changed
Open diff view settings
Collapse file

‎.flake8‎

Copy file name to clipboardExpand all lines: .flake8
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ extend-ignore =
2424
D105,
2525
# missing docstring in __init__:
2626
D107,
27-
# TODO: remove:
28-
D200, D403,
2927
# no blank lines allowed after function docstring:
3028
D202,
3129
# 1 blank line required between summary line and description:
Collapse file

‎dpnp/dpnp_array.py‎

Copy file name to clipboardExpand all lines: dpnp/dpnp_array.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __array__(self, dtype=None, /, *, copy=None):
129129
:class:`dpnp.ndarray` instance into NumPy array with data type `object`
130130
and every element being zero-dimensional :class:`dpnp.ndarray`.
131131
132-
"""
132+
""" # noqa: D403
133133

134134
raise TypeError(
135135
"Implicit conversion to a NumPy array is not allowed. "
@@ -567,7 +567,7 @@ def __sycl_usm_array_interface__(self):
567567
"""
568568
Give ``__sycl_usm_array_interface__`` dictionary describing the array.
569569
570-
"""
570+
""" # noqa: D200
571571
return self._array_obj.__sycl_usm_array_interface__
572572

573573
def __truediv__(self, other):
@@ -1061,7 +1061,7 @@ def dtype(self):
10611061
"""
10621062
Returns NumPy's dtype corresponding to the type of the array elements.
10631063
1064-
"""
1064+
""" # noqa: D200
10651065

10661066
return self._array_obj.dtype
10671067

@@ -1110,7 +1110,7 @@ def flat(self):
11101110
"""
11111111
Return a flat iterator, or set a flattened version of self to value.
11121112
1113-
"""
1113+
""" # noqa: D200
11141114

11151115
return dpnp.flatiter(self)
11161116

@@ -1871,7 +1871,7 @@ def sycl_context(self):
18711871
"""
18721872
Return :class:`dpctl.SyclContext` object to which USM data is bound.
18731873
1874-
"""
1874+
""" # noqa: D200
18751875
return self._array_obj.sycl_context
18761876

18771877
@property
@@ -1888,7 +1888,7 @@ def sycl_queue(self):
18881888
"""
18891889
Return :class:`dpctl.SyclQueue` object associated with USM data.
18901890
1891-
"""
1891+
""" # noqa: D200
18921892
return self._array_obj.sycl_queue
18931893

18941894
@property

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.