From 900523a0d9a0efd8aeb042fe63ff8ec751e8c230 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 13:02:56 +0000 Subject: [PATCH 1/3] Bump the pre-commit group with 2 updates Bumps the pre-commit group with 2 updates: flake8-bugbear and [https://github.com/pre-commit/mirrors-clang-format](https://github.com/pre-commit/mirrors-clang-format). Updates `flake8-bugbear` from 25.11.29 to 26.9.9 Updates `https://github.com/pre-commit/mirrors-clang-format` from v23.1.0 to 23.1.1 - [Commits](https://github.com/pre-commit/mirrors-clang-format/compare/v23.1.0...v23.1.1) --- updated-dependencies: - dependency-name: flake8-bugbear dependency-version: 26.9.9 dependency-type: direct:production update-type: version-update:semver-major dependency-group: pre-commit - dependency-name: https://github.com/pre-commit/mirrors-clang-format dependency-version: 23.1.1 dependency-type: direct:production dependency-group: pre-commit ... Signed-off-by: dependabot[bot] --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f09b6640fe4..2fe4c428e5e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -87,9 +87,9 @@ repos: args: ["--config=.flake8"] additional_dependencies: - flake8-docstrings==1.7.0 - - flake8-bugbear==25.11.29 + - flake8-bugbear==26.9.9 - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v23.1.0 + rev: v23.1.1 hooks: - id: clang-format args: ["-i"] From bd4500db3536117ae83f13f9432d8c3cfe877fbe Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Tue, 22 Sep 2026 06:27:08 -0700 Subject: [PATCH 2/3] Apply pretty-format-toml formatting to pyproject.toml --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0cf3e972187..6685351e2e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ requires = [ ] [project] -authors = [{name = "Intel Corporation"}] +authors = [{ name = "Intel Corporation" }] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", @@ -69,9 +69,9 @@ keywords = [ ] license = "BSD-3-Clause" license-files = ["LICENSE.txt"] -maintainers = [{name = "Intel Corporation"}] +maintainers = [{ name = "Intel Corporation" }] name = "dpnp" -readme = {file = "README.md", content-type = "text/markdown"} +readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.10,<3.15" [project.optional-dependencies] From 7ccd149512e8c32d6a05a2f265fbb69aa5c9c09a Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Tue, 22 Sep 2026 06:27:30 -0700 Subject: [PATCH 3/3] Fix flake8 B018 warning in dpnp.split --- dpnp/dpnp_iface_manipulation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dpnp/dpnp_iface_manipulation.py b/dpnp/dpnp_iface_manipulation.py index 8d3050da4e0..1f9a6b49d72 100644 --- a/dpnp/dpnp_iface_manipulation.py +++ b/dpnp/dpnp_iface_manipulation.py @@ -3860,7 +3860,8 @@ def split(ary, indices_or_sections, axis=0): raise IndexError("Axis exceeds ndim") try: - len(indices_or_sections) + # check if `indices_or_sections` is a sequence of indices + _ = len(indices_or_sections) except TypeError: if ary.shape[axis] % indices_or_sections != 0: raise ValueError(