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"] 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( 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]