From 736db36dc451fec4df4f0ee49e7f09e5a85f9d40 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 18:31:06 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.11.4 → v0.15.20](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.4...v0.15.20) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.5.1](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...26.5.1) - [github.com/shellcheck-py/shellcheck-py: v0.10.0.1 → v0.11.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.10.0.1...v0.11.0.1) - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v2.1.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.15.0...v2.1.0) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 96f7a56..61db915 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ default_language_version: python: "3.12" repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v5.0.0" + rev: "v6.0.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -15,13 +15,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.11.4" + rev: "v0.15.20" hooks: - id: ruff args: [--fix] - - repo: https://github.com/psf/black - rev: "25.1.0" + - repo: https://github.com/psf/black-pre-commit-mirror + rev: "26.5.1" hooks: - id: black @@ -32,12 +32,12 @@ repos: exclude: docs/sphinx_pyodide/tests/test_directives\.py - repo: https://github.com/shellcheck-py/shellcheck-py - rev: "v0.10.0.1" + rev: "v0.11.0.1" hooks: - id: shellcheck - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.15.0" + rev: "v2.1.0" hooks: - id: mypy args: [] From 57d941c2052c2ee5cd7585854d43dcd0f3a64dc5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 18:33:15 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyodide_lock/utils.py | 2 +- tests/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyodide_lock/utils.py b/pyodide_lock/utils.py index 4e9851e..d473ea2 100644 --- a/pyodide_lock/utils.py +++ b/pyodide_lock/utils.py @@ -319,7 +319,7 @@ def _check_wheel_compatible(path: Path, info: InfoSpec) -> None: target_python = version_parse(info.python) target_platform = info.platform + "_" + info.arch try: - (name, version, build_number, tags) = parse_wheel_filename(str(path.name)) + name, version, build_number, tags = parse_wheel_filename(str(path.name)) except (InvalidWheelFilename, InvalidVersion) as e: raise RuntimeError(f"Wheel filename {path.name} is not valid") from e python_binary_abi = f"cp{target_python.major}{target_python.minor}" diff --git a/tests/conftest.py b/tests/conftest.py index dd3ef61..1fd7840 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -35,7 +35,7 @@ } # marker environment for testing -_ENV = _get_marker_environment(**LOCK_EXAMPLE["info"]) # type:ignore[arg-type] +_ENV = _get_marker_environment(**LOCK_EXAMPLE["info"]) # type: ignore[arg-type] # marker environment for testing, filtered only to numerical values _ENV_NUM = {k: v for k, v in _ENV.items() if v[0] in "0123456789"} From 6b540f6a43c93c35728b3703839dcbf23f291680 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Mon, 6 Jul 2026 12:16:25 -0700 Subject: [PATCH 3/3] Ignore PLC0415 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 4d49c77..bb25c13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,6 +90,7 @@ select = [ ] ignore = [ "E501", # line too long + "PLC0415", # `import` should be at the top-level of a file ] [tool.pytest.ini_options]