Skip to content

Commit 7b66333

Browse files
authored
Merge pull request #2175 from IntelPython/bot/pre-commit-autoupdate
Weekly pre-commit autoupdate
2 parents 2d0fd6b + e66d90e commit 7b66333

24 files changed

+48
-66
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/PyCQA/bandit
5-
rev: '1.8.3'
5+
rev: '1.8.6'
66
hooks:
77
- id: bandit
88
pass_filenames: false
99
args: ["-r", "dpctl", "-lll"]
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.6.0
11+
rev: v6.0.0
1212
hooks:
1313
- id: end-of-file-fixer
1414
- id: trailing-whitespace
1515
- repo: https://github.com/psf/black
16-
rev: 24.4.2
16+
rev: 25.9.0
1717
hooks:
1818
- id: black
1919
exclude: "versioneer.py|dpctl/_version.py"
2020
- repo: https://github.com/pycqa/isort
21-
rev: 5.13.2
21+
rev: 7.0.0
2222
hooks:
2323
- id: isort
2424
name: isort (python)
@@ -29,7 +29,7 @@ repos:
2929
name: isort (pyi)
3030
types: [pyi]
3131
- repo: https://github.com/pycqa/flake8
32-
rev: 7.1.0
32+
rev: 7.3.0
3333
hooks:
3434
- id: flake8
3535
- repo: https://github.com/pocc/pre-commit-hooks
@@ -38,12 +38,12 @@ repos:
3838
- id: clang-format
3939
args: ["-i"]
4040
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
41-
rev: v2.12.0
41+
rev: v2.15.0
4242
hooks:
4343
- id: pretty-format-toml
4444
args: [--autofix]
4545
- repo: https://github.com/MarcoGorelli/cython-lint
46-
rev: v0.16.6
46+
rev: v0.18.0
4747
hooks:
4848
- id: cython-lint
4949
- id: double-quote-cython-strings

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

0 commit comments

Comments
 (0)