From 72f47e13f00af96db678e233c298cdf21ff93213 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 16:45:12 +0000 Subject: [PATCH 1/2] Bump black from 25.9.0 to 26.3.1 Bumps [black](https://github.com/psf/black) from 25.9.0 to 26.3.1. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/25.9.0...26.3.1) --- updated-dependencies: - dependency-name: black dependency-version: 26.3.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c8c047b..900bf3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,10 +53,10 @@ dev-flake8 = [ "pydoclint == 0.8.3", "pydocstyle == 6.3.0", ] -dev-formatting = ["black == 25.9.0", "isort == 8.0.1"] +dev-formatting = ["black == 26.3.1", "isort == 8.0.1"] dev-mkdocs = [ "Markdown == 3.10.2", - "black == 25.9.0", + "black == 26.3.1", "mike == 2.1.4", "mkdocs-gen-files == 0.6.1", "mkdocs-literate-nav == 0.6.3", From e9471ec566d911f9056bb3a4c8e09fe7c372893e Mon Sep 17 00:00:00 2001 From: "frequenz-auto-dependabot[bot]" <261417025+frequenz-auto-dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 16:45:40 +0000 Subject: [PATCH 2/2] Apply migration from 25.9.0 to 26.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit === v26.3.1 ========================================================= Source: inline script Collecting black==26.3.1 Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (91 kB) Collecting click>=8.0.0 (from black==26.3.1) Downloading click-8.3.1-py3-none-any.whl.metadata (2.6 kB) Collecting mypy-extensions>=0.4.3 (from black==26.3.1) Downloading mypy_extensions-1.1.0-py3-none-any.whl.metadata (1.1 kB) Collecting packaging>=22.0 (from black==26.3.1) Downloading packaging-26.0-py3-none-any.whl.metadata (3.3 kB) Collecting pathspec>=1.0.0 (from black==26.3.1) Downloading pathspec-1.0.4-py3-none-any.whl.metadata (13 kB) Collecting platformdirs>=2 (from black==26.3.1) Downloading platformdirs-4.9.4-py3-none-any.whl.metadata (4.7 kB) Collecting pytokens~=0.4.0 (from black==26.3.1) Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB) Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 8.4 MB/s 0:00:00 Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (268 kB) Downloading click-8.3.1-py3-none-any.whl (108 kB) Downloading mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB) Downloading packaging-26.0-py3-none-any.whl (74 kB) Downloading pathspec-1.0.4-py3-none-any.whl (55 kB) Downloading platformdirs-4.9.4-py3-none-any.whl (21 kB) Installing collected packages: pytokens, platformdirs, pathspec, packaging, mypy-extensions, click, black Successfully installed black-26.3.1 click-8.3.1 mypy-extensions-1.1.0 packaging-26.0 pathspec-1.0.4 platformdirs-4.9.4 pytokens-0.4.1 reformatted /home/runner/work/frequenz-core-python/frequenz-core-python/src/frequenz/core/id.py reformatted /home/runner/work/frequenz-core-python/frequenz-core-python/tests/test_module.py reformatted /home/runner/work/frequenz-core-python/frequenz-core-python/tests/math/test_interval.py All done! ✨ 🍰 ✨ 3 files reformatted, 13 files left unchanged. The migration completed successfully. --- src/frequenz/core/id.py | 1 - tests/math/test_interval.py | 1 - tests/test_module.py | 1 - 3 files changed, 3 deletions(-) diff --git a/src/frequenz/core/id.py b/src/frequenz/core/id.py index 1b4787c..1abb1b7 100644 --- a/src/frequenz/core/id.py +++ b/src/frequenz/core/id.py @@ -61,7 +61,6 @@ class CustomNameForId(BaseId, str_prefix="CST", allow_custom_name=True): ``` ''' - import logging from typing import Any, ClassVar, Self, cast diff --git a/tests/math/test_interval.py b/tests/math/test_interval.py index 7cc2097..97af018 100644 --- a/tests/math/test_interval.py +++ b/tests/math/test_interval.py @@ -3,7 +3,6 @@ """Tests for the collections module.""" - from typing import Self import pytest diff --git a/tests/test_module.py b/tests/test_module.py index 3c27422..0d9f6ab 100644 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -3,7 +3,6 @@ """Tests for the log module.""" - import pytest from frequenz.core.module import get_public_module_name