From ce836c14437e1f40a4bbbdb7272e6209d7404fcf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 00:27:12 +0000 Subject: [PATCH 1/3] chore(deps): update black requirement from ==25.* to ==26.* Updates the requirements on [black](https://github.com/psf/black) to permit the latest version. - [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.1.0...26.5.1) --- updated-dependencies: - dependency-name: black dependency-version: 26.5.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements-testing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-testing.txt b/requirements-testing.txt index 8ce61eaa..d1a9ef3d 100644 --- a/requirements-testing.txt +++ b/requirements-testing.txt @@ -5,7 +5,7 @@ pytest == 9.1.*; python_version >= "3.10" pytest-cov == 7.1.* pytest-timeout == 2.4.* pytest-xdist == 3.8.* -black == 25.* +black == 26.* ruff == 0.15.* psutil >= 5.9,< 7.3 mypy == 1.19.*; python_version == "3.9" From 28accf065bc503bf8952e24505455fe309a62b8d Mon Sep 17 00:00:00 2001 From: Jericho Tolentino <68654047+jericht@users.noreply.github.com> Date: Fri, 3 Jul 2026 00:31:20 +0000 Subject: [PATCH 2/3] chore(deps): pin black 25.x for Python 3.9, 26.x for 3.10+ black 26.x requires Python >=3.10. Use environment markers to keep 3.9 on the last compatible version (25.x). Signed-off-by: Jericho Tolentino <68654047+jericht@users.noreply.github.com> --- requirements-testing.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements-testing.txt b/requirements-testing.txt index d1a9ef3d..35888c77 100644 --- a/requirements-testing.txt +++ b/requirements-testing.txt @@ -5,7 +5,8 @@ pytest == 9.1.*; python_version >= "3.10" pytest-cov == 7.1.* pytest-timeout == 2.4.* pytest-xdist == 3.8.* -black == 26.* +black == 25.*; python_version == "3.9" +black == 26.*; python_version >= "3.10" ruff == 0.15.* psutil >= 5.9,< 7.3 mypy == 1.19.*; python_version == "3.9" From 1665c0ddcb8fd98d0b7d51c929857ca0676f3fba Mon Sep 17 00:00:00 2001 From: Jericho Tolentino <68654047+jericht@users.noreply.github.com> Date: Fri, 3 Jul 2026 00:35:06 +0000 Subject: [PATCH 3/3] style: reformat with black 26.x Signed-off-by: Jericho Tolentino <68654047+jericht@users.noreply.github.com> --- .github/scripts/get_latest_changelog.py | 1 + hatch_version_hook.py | 1 - scripts/windows_service_test.py | 1 - src/openjd/sessions/_linux/_capabilities.py | 1 - src/openjd/sessions/_v1/_linux/_capabilities.py | 1 - test/openjd/sessions_v0/test_subprocess.py | 1 + test/openjd/sessions_v1/test_pickle.py | 1 - test/openjd/sessions_v1/test_session_scenarios.py | 1 - 8 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/scripts/get_latest_changelog.py b/.github/scripts/get_latest_changelog.py index 5616efbc..2382f587 100644 --- a/.github/scripts/get_latest_changelog.py +++ b/.github/scripts/get_latest_changelog.py @@ -29,6 +29,7 @@ ``` """ + import re h2 = r"^##\s.*$" diff --git a/hatch_version_hook.py b/hatch_version_hook.py index 6b65893b..73648f46 100644 --- a/hatch_version_hook.py +++ b/hatch_version_hook.py @@ -7,7 +7,6 @@ from hatchling.builders.hooks.plugin.interface import BuildHookInterface from typing import Any, Optional - _logger = logging.Logger(__name__, logging.INFO) _stdout_handler = logging.StreamHandler(sys.stdout) _stdout_handler.addFilter(lambda record: record.levelno <= logging.INFO) diff --git a/scripts/windows_service_test.py b/scripts/windows_service_test.py index 0dc8ff2c..3d230e8c 100644 --- a/scripts/windows_service_test.py +++ b/scripts/windows_service_test.py @@ -17,7 +17,6 @@ import pytest from getpass import getpass - logger = logging.getLogger(__name__) diff --git a/src/openjd/sessions/_linux/_capabilities.py b/src/openjd/sessions/_linux/_capabilities.py index 0a7983a1..c2c31a58 100644 --- a/src/openjd/sessions/_linux/_capabilities.py +++ b/src/openjd/sessions/_linux/_capabilities.py @@ -19,7 +19,6 @@ from .._logging import LOG - # Capability sets CAP_EFFECTIVE = 0 CAP_PERMITTED = 1 diff --git a/src/openjd/sessions/_v1/_linux/_capabilities.py b/src/openjd/sessions/_v1/_linux/_capabilities.py index 0a7983a1..c2c31a58 100644 --- a/src/openjd/sessions/_v1/_linux/_capabilities.py +++ b/src/openjd/sessions/_v1/_linux/_capabilities.py @@ -19,7 +19,6 @@ from .._logging import LOG - # Capability sets CAP_EFFECTIVE = 0 CAP_PERMITTED = 1 diff --git a/test/openjd/sessions_v0/test_subprocess.py b/test/openjd/sessions_v0/test_subprocess.py index 5f38d7ac..6c014546 100644 --- a/test/openjd/sessions_v0/test_subprocess.py +++ b/test/openjd/sessions_v0/test_subprocess.py @@ -1,6 +1,7 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. """Tests for LoggingSubprocess""" + import sys import tempfile import time diff --git a/test/openjd/sessions_v1/test_pickle.py b/test/openjd/sessions_v1/test_pickle.py index fa7c483d..d6c63aac 100644 --- a/test/openjd/sessions_v1/test_pickle.py +++ b/test/openjd/sessions_v1/test_pickle.py @@ -19,7 +19,6 @@ import pytest - # ── Group A: enums ─────────────────────────────────────────────── diff --git a/test/openjd/sessions_v1/test_session_scenarios.py b/test/openjd/sessions_v1/test_session_scenarios.py index 839df7f3..2459580b 100644 --- a/test/openjd/sessions_v1/test_session_scenarios.py +++ b/test/openjd/sessions_v1/test_session_scenarios.py @@ -74,7 +74,6 @@ ) from openjd.sessions._v1 import Session, PathMappingRule, SessionState - SCENARIOS_DIR = Path(__file__).parent / "scenarios"