Skip to content

Commit e66d90e

Browse files
committed
Apply new version of black linter
1 parent 0ff7436 commit e66d90e

23 files changed

+41
-59
lines changed

docs/_legacy/generate_rst.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
""" The module provides helper functions to generate API documentation for
18-
dpctl and its members.
17+
"""The module provides helper functions to generate API documentation for
18+
dpctl and its members.
1919
"""
2020

2121
import argparse

dpctl/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
# limitations under the License.
1616

1717
"""
18-
**Data Parallel Control (dpctl)** is a Python abstraction layer over SYCL.
18+
**Data Parallel Control (dpctl)** is a Python abstraction layer over SYCL.
1919
20-
Dpctl implements a subset of SYCL's API providing wrappers for the
21-
SYCL runtime classes described in :sycl_runtime_classes:`Section 4.6 <>` of
22-
the :sycl_spec_2020:`SYCL 2020 spec <>`.
20+
Dpctl implements a subset of SYCL's API providing wrappers for the
21+
SYCL runtime classes described in :sycl_runtime_classes:`Section 4.6 <>` of
22+
the :sycl_spec_2020:`SYCL 2020 spec <>`.
2323
"""
2424
__author__ = "Intel Corp."
2525

dpctl/memory/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
# limitations under the License.
1616

1717
"""
18-
**Data Parallel Control Memory** provides Python objects for untyped USM
19-
memory container of bytes for each kind of USM pointers: shared pointers,
20-
device pointers and host pointers.
18+
**Data Parallel Control Memory** provides Python objects for untyped USM
19+
memory container of bytes for each kind of USM pointers: shared pointers,
20+
device pointers and host pointers.
2121
22-
Shared and host pointers are accessible from both host and a device,
23-
while device pointers are only accessible from device.
22+
Shared and host pointers are accessible from both host and a device,
23+
while device pointers are only accessible from device.
2424
25-
Python objects corresponding to shared and host pointers implement
26-
Python simple buffer protocol. It is therefore possible to use these
27-
objects to maniputalate USM memory using NumPy or `bytearray`,
28-
`memoryview`, or `array.array` classes.
25+
Python objects corresponding to shared and host pointers implement
26+
Python simple buffer protocol. It is therefore possible to use these
27+
objects to maniputalate USM memory using NumPy or `bytearray`,
28+
`memoryview`, or `array.array` classes.
2929
3030
"""
3131
from ._memory import (

dpctl/program/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
# limitations under the License.
1616

1717
"""
18-
**Data Parallel Control Program** provides a way to create a SYCL kernel
19-
from either an OpenCL program represented as a string or a SPIR-V binary
20-
file.
18+
**Data Parallel Control Program** provides a way to create a SYCL kernel
19+
from either an OpenCL program represented as a string or a SPIR-V binary
20+
file.
2121
2222
"""
2323
from ._program import (

dpctl/tensor/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
# limitations under the License.
1616

1717
"""
18-
**Data Parallel Tensor** provides an N-dimensional array container
19-
backed by typed USM allocations and implements operations to
20-
create and manipulate such arrays, as well as perform operations
21-
on arrays in conformance with Python Array API standard.
18+
**Data Parallel Tensor** provides an N-dimensional array container
19+
backed by typed USM allocations and implements operations to
20+
create and manipulate such arrays, as well as perform operations
21+
on arrays in conformance with Python Array API standard.
2222
23-
[ArrayAPI] https://data-apis.org/array-api
23+
[ArrayAPI] https://data-apis.org/array-api
2424
"""
2525

2626
from dpctl.tensor._copy_utils import asnumpy, astype, copy, from_numpy, to_numpy

dpctl/tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
""" Configures pytest to discover helper/ module
18-
"""
17+
"""Configures pytest to discover helper/ module"""
1918

2019
import os
2120
import sys

dpctl/tests/helper/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
"""Helper module for dpctl/tests
18-
"""
17+
"""Helper module for dpctl/tests"""
1918

2019
from ._helper import (
2120
create_invalid_capsule,

dpctl/tests/test_service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
""" Defines unit test cases for miscellaneous functions.
18-
"""
17+
"""Defines unit test cases for miscellaneous functions."""
1918

2019
import ctypes
2120
import ctypes.util

dpctl/tests/test_sycl_context.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
""" Defines unit test cases for the :class:`dpctl.SyclContext` class.
18-
"""
17+
"""Defines unit test cases for the :class:`dpctl.SyclContext` class."""
1918

2019
import pytest
2120

dpctl/tests/test_sycl_device.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
""" Defines unit test cases for the SyclDevice class.
18-
"""
17+
"""Defines unit test cases for the SyclDevice class."""
1918

2019
import pytest
2120

0 commit comments

Comments
 (0)