From ade95b7be4eb83bbf4f4ef9f63e52516c9195803 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 1 Mar 2026 22:02:36 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#2746) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.0 → v0.15.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.0...v0.15.2) - [github.com/python-jsonschema/check-jsonschema: 0.36.1 → 0.36.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.36.1...0.36.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- cibuildwheel/selector.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4cb1dc9..5a63e0dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.0 + rev: v0.15.2 hooks: - id: ruff-check args: ["--fix", "--show-fixes"] @@ -83,7 +83,7 @@ repos: - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.36.1 + rev: 0.36.2 hooks: - id: check-dependabot - id: check-github-actions diff --git a/cibuildwheel/selector.py b/cibuildwheel/selector.py index 29ad204b..06e94313 100644 --- a/cibuildwheel/selector.py +++ b/cibuildwheel/selector.py @@ -75,7 +75,7 @@ class BuildSelector: def __call__(self, build_id: str) -> bool: # Filter build selectors by python_requires if set if self.requires_python is not None: - py_ver_str = build_id.split("-", maxsplit=1)[0].split("_")[0] + py_ver_str = build_id.split("-", maxsplit=1)[0].split("_", maxsplit=1)[0] py_ver_str = py_ver_str.removesuffix("t") major = int(py_ver_str[2]) minor = int(py_ver_str[3:])