From 9aba3ae4c4aefa15aa15a6b5e5ef34013e49065c Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 8 May 2025 12:46:26 +0200 Subject: [PATCH 1/2] Update pre-commit config to the latest versions --- .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 55e912f72b61..7d73442d0729 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,7 +66,7 @@ repos: name: isort (pyi) types: [pyi] - repo: https://github.com/pycqa/flake8 - rev: 7.1.2 + rev: 7.2.0 hooks: - id: flake8 args: ["--config=.flake8"] @@ -79,7 +79,7 @@ repos: - id: clang-format args: ["-i"] - repo: https://github.com/gitleaks/gitleaks - rev: v8.24.0 + rev: v8.25.1 hooks: - id: gitleaks - repo: https://github.com/jumanjihouse/pre-commit-hooks From b220a06cf6c240d2845057e48a14b976541bf5c7 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 8 May 2025 16:58:29 +0200 Subject: [PATCH 2/2] Mute a false positive error --- dpnp/random/dpnp_iface_random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpnp/random/dpnp_iface_random.py b/dpnp/random/dpnp_iface_random.py index 9d20126998f3..1951faa9b7ef 100644 --- a/dpnp/random/dpnp_iface_random.py +++ b/dpnp/random/dpnp_iface_random.py @@ -1672,7 +1672,7 @@ def seed(seed=None, device=None, sycl_queue=None): """ # update a mt19937 random number for both RandomState and legacy functionality - global _dpnp_random_states + global _dpnp_random_states # noqa: F824 sycl_queue = dpnp.get_normalized_queue_device( device=device, sycl_queue=sycl_queue