From e6614e2f4d2107a60c8a3a9fd91f9db5f7c1e304 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 18:06:51 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.13 → v0.12.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.13...v0.12.1) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.0...v1.16.1) --- .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 3d8bdc1a..680efd88 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,14 +21,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.13 + rev: v0.12.1 hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.16.1 hooks: - id: mypy exclude: tests/integration/.*/.*|tests/integration/quick_check_numpy.py|tests/unit/test_wheel_abi.py|scripts/calculate_symbol_versions.py From 02a77e0159e799acf2e8265a5c3724e0f5d2aa4d Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 6 Jul 2025 10:09:34 +0200 Subject: [PATCH 2/2] workaround PLC0415 (import not at top-level) This should probably be handled differently but for now, just ignore those errors for specific files --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 07722168..b0b38d91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,3 +122,8 @@ ignore = [ "ISC001", # Conflicts with formatter "PLR", # Design related pylint codes ] + +[tool.ruff.lint.per-file-ignores] +"src/auditwheel/main_lddtree.py" = ["PLC0415"] +"src/auditwheel/main_repair.py" = ["PLC0415"] +"src/auditwheel/main_show.py" = ["PLC0415"]