From b875944a38423d4d2feb637c321290273432f3ff Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 6 Oct 2026 14:12:45 -0400 Subject: [PATCH] chore: update flake8-lazy to v0.10.1 Assisted-by: ClaudeCode:claude-opus-5-5 --- .pre-commit-config.yaml | 2 +- cibuildwheel/__main__.py | 4 ++-- cibuildwheel/architecture.py | 2 +- cibuildwheel/audit.py | 2 +- cibuildwheel/ci.py | 2 +- cibuildwheel/environment.py | 2 +- cibuildwheel/extra.py | 2 +- cibuildwheel/frontend.py | 2 +- cibuildwheel/oci_container.py | 2 +- cibuildwheel/options.py | 2 +- cibuildwheel/platforms/__init__.py | 2 ++ cibuildwheel/platforms/android.py | 2 +- cibuildwheel/platforms/ios.py | 2 +- cibuildwheel/platforms/linux.py | 1 + cibuildwheel/platforms/macos.py | 3 ++- cibuildwheel/platforms/pyodide.py | 1 + cibuildwheel/platforms/windows.py | 1 + cibuildwheel/selector.py | 2 +- cibuildwheel/util/file.py | 1 - cibuildwheel/util/packaging.py | 2 +- cibuildwheel/venv.py | 2 +- 21 files changed, 23 insertions(+), 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6e9d70e7..35615a37d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -77,7 +77,7 @@ repos: additional_dependencies: [cogapp>=3.5] - repo: https://github.com/henryiii/flake8-lazy - rev: 3b5e52593dfaec56e6e4a48f237bafcf3d0b83ea # frozen: v0.9.0 + rev: 2db69f40494cc912ede966160695ede82eb6ebac # frozen: v0.10.1 hooks: - id: flake8-lazy args: ["--apply=set"] diff --git a/cibuildwheel/__main__.py b/cibuildwheel/__main__.py index be385168f..b379b0c62 100644 --- a/cibuildwheel/__main__.py +++ b/cibuildwheel/__main__.py @@ -2,7 +2,7 @@ __lazy_modules__ = { "argparse", - "cibuildwheel._compat", + "cibuildwheel", "cibuildwheel._compat.tarfile", "cibuildwheel.architecture", "cibuildwheel.ci", @@ -11,7 +11,6 @@ "cibuildwheel.platforms", "cibuildwheel.selector", "cibuildwheel.typing", - "cibuildwheel.util", "cibuildwheel.util.file", "cibuildwheel.util.helpers", "cibuildwheel.util.resources", @@ -23,6 +22,7 @@ "tempfile", "textwrap", "traceback", + "typing", } import argparse diff --git a/cibuildwheel/architecture.py b/cibuildwheel/architecture.py index 55a37cafb..fb81bf34e 100644 --- a/cibuildwheel/architecture.py +++ b/cibuildwheel/architecture.py @@ -1,6 +1,6 @@ from __future__ import annotations -__lazy_modules__ = {"platform", "re", "shutil", "subprocess"} +__lazy_modules__ = {"cibuildwheel", "platform", "re", "shutil", "subprocess"} import platform as platform_module import re diff --git a/cibuildwheel/audit.py b/cibuildwheel/audit.py index dadaef04c..d7f37f0df 100644 --- a/cibuildwheel/audit.py +++ b/cibuildwheel/audit.py @@ -1,8 +1,8 @@ from __future__ import annotations __lazy_modules__ = { + "cibuildwheel", "cibuildwheel.logger", - "cibuildwheel.util", "cibuildwheel.util.cmd", "cibuildwheel.util.helpers", "cibuildwheel.util.packaging", diff --git a/cibuildwheel/ci.py b/cibuildwheel/ci.py index 09619f127..9e5fadd9f 100644 --- a/cibuildwheel/ci.py +++ b/cibuildwheel/ci.py @@ -1,4 +1,4 @@ -__lazy_modules__ = {"cibuildwheel.util", "cibuildwheel.util.helpers"} +__lazy_modules__ = {"cibuildwheel.util.helpers"} import os import re diff --git a/cibuildwheel/environment.py b/cibuildwheel/environment.py index a38ad22a9..b783d79e4 100644 --- a/cibuildwheel/environment.py +++ b/cibuildwheel/environment.py @@ -1,6 +1,6 @@ from __future__ import annotations -__lazy_modules__ = {"bashlex", "bashlex.errors"} +__lazy_modules__ = {"bashlex", "bashlex.errors", "cibuildwheel"} import dataclasses from typing import Protocol diff --git a/cibuildwheel/extra.py b/cibuildwheel/extra.py index 0eb3be982..1d5d271c2 100644 --- a/cibuildwheel/extra.py +++ b/cibuildwheel/extra.py @@ -4,7 +4,7 @@ from __future__ import annotations -__lazy_modules__ = {"io", "json", "urllib", "urllib.error", "urllib.request"} +__lazy_modules__ = {"cibuildwheel", "io", "json", "urllib.error", "urllib.request"} import json import os diff --git a/cibuildwheel/frontend.py b/cibuildwheel/frontend.py index b3dc58ab8..e4992f00e 100644 --- a/cibuildwheel/frontend.py +++ b/cibuildwheel/frontend.py @@ -1,6 +1,6 @@ from __future__ import annotations -__lazy_modules__ = {"cibuildwheel.util", "cibuildwheel.util.helpers", "shlex"} +__lazy_modules__ = {"cibuildwheel.util.helpers", "shlex"} import dataclasses import shlex diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py index dd7d0e394..9b8714fc0 100644 --- a/cibuildwheel/oci_container.py +++ b/cibuildwheel/oci_container.py @@ -4,12 +4,12 @@ "cibuildwheel.ci", "cibuildwheel.errors", "cibuildwheel.logger", - "cibuildwheel.util", "cibuildwheel.util.cmd", "cibuildwheel.util.helpers", "contextlib", "io", "json", + "pathlib", "platform", "shlex", "shutil", diff --git a/cibuildwheel/options.py b/cibuildwheel/options.py index 4309b678d..2d97ed17c 100644 --- a/cibuildwheel/options.py +++ b/cibuildwheel/options.py @@ -15,12 +15,12 @@ "collections", "configparser", "difflib", - "packaging", "packaging.specifiers", "pathlib", "shlex", "textwrap", "tomllib", + "typing", } import collections diff --git a/cibuildwheel/platforms/__init__.py b/cibuildwheel/platforms/__init__.py index cfe22cbba..c5818faf7 100644 --- a/cibuildwheel/platforms/__init__.py +++ b/cibuildwheel/platforms/__init__.py @@ -1,5 +1,7 @@ from __future__ import annotations +__lazy_modules__ = {"cibuildwheel"} + import sys from typing import Protocol diff --git a/cibuildwheel/platforms/android.py b/cibuildwheel/platforms/android.py index eabb87c79..6413c9320 100644 --- a/cibuildwheel/platforms/android.py +++ b/cibuildwheel/platforms/android.py @@ -3,6 +3,7 @@ __lazy_modules__ = { "build", "build.env", + "cibuildwheel", "cibuildwheel.architecture", "cibuildwheel.audit", "cibuildwheel.frontend", @@ -14,7 +15,6 @@ "cibuildwheel.util.python_build_standalone", "cibuildwheel.venv", "filelock", - "packaging", "packaging.utils", "pathlib", "platform", diff --git a/cibuildwheel/platforms/ios.py b/cibuildwheel/platforms/ios.py index 2d1fefd64..30f07defc 100644 --- a/cibuildwheel/platforms/ios.py +++ b/cibuildwheel/platforms/ios.py @@ -1,6 +1,7 @@ from __future__ import annotations __lazy_modules__ = { + "cibuildwheel", "cibuildwheel.audit", "cibuildwheel.frontend", "cibuildwheel.logger", @@ -12,7 +13,6 @@ "cibuildwheel.util.packaging", "cibuildwheel.venv", "filelock", - "packaging", "packaging.version", "pathlib", "platform", diff --git a/cibuildwheel/platforms/linux.py b/cibuildwheel/platforms/linux.py index 537d43277..394f0da7d 100644 --- a/cibuildwheel/platforms/linux.py +++ b/cibuildwheel/platforms/linux.py @@ -1,6 +1,7 @@ from __future__ import annotations __lazy_modules__ = { + "cibuildwheel", "cibuildwheel.audit", "cibuildwheel.frontend", "cibuildwheel.logger", diff --git a/cibuildwheel/platforms/macos.py b/cibuildwheel/platforms/macos.py index 5b4e51bbb..21d48e10d 100644 --- a/cibuildwheel/platforms/macos.py +++ b/cibuildwheel/platforms/macos.py @@ -1,6 +1,7 @@ from __future__ import annotations __lazy_modules__ = { + "cibuildwheel", "cibuildwheel.audit", "cibuildwheel.ci", "cibuildwheel.frontend", @@ -13,13 +14,13 @@ "cibuildwheel.venv", "filelock", "inspect", - "packaging", "packaging.version", "pathlib", "platform", "re", "shutil", "subprocess", + "typing", } import dataclasses diff --git a/cibuildwheel/platforms/pyodide.py b/cibuildwheel/platforms/pyodide.py index 6de8a00db..4ade1ff97 100644 --- a/cibuildwheel/platforms/pyodide.py +++ b/cibuildwheel/platforms/pyodide.py @@ -1,6 +1,7 @@ from __future__ import annotations __lazy_modules__ = { + "cibuildwheel", "cibuildwheel.architecture", "cibuildwheel.audit", "cibuildwheel.frontend", diff --git a/cibuildwheel/platforms/windows.py b/cibuildwheel/platforms/windows.py index 67badcaeb..364cae3af 100644 --- a/cibuildwheel/platforms/windows.py +++ b/cibuildwheel/platforms/windows.py @@ -1,6 +1,7 @@ from __future__ import annotations __lazy_modules__ = { + "cibuildwheel", "cibuildwheel.architecture", "cibuildwheel.audit", "cibuildwheel.frontend", diff --git a/cibuildwheel/selector.py b/cibuildwheel/selector.py index d710de9d5..d7f8f6899 100644 --- a/cibuildwheel/selector.py +++ b/cibuildwheel/selector.py @@ -1,6 +1,6 @@ from __future__ import annotations -__lazy_modules__ = {"bracex", "fnmatch", "itertools", "packaging", "packaging.version"} +__lazy_modules__ = {"bracex", "fnmatch", "itertools", "packaging.version"} import dataclasses import itertools diff --git a/cibuildwheel/util/file.py b/cibuildwheel/util/file.py index a21c290f0..3b92b41bc 100644 --- a/cibuildwheel/util/file.py +++ b/cibuildwheel/util/file.py @@ -8,7 +8,6 @@ "ssl", "tarfile", "typing", - "urllib", "urllib.error", "urllib.request", "zipfile", diff --git a/cibuildwheel/util/packaging.py b/cibuildwheel/util/packaging.py index 58d2a2818..c863bc44b 100644 --- a/cibuildwheel/util/packaging.py +++ b/cibuildwheel/util/packaging.py @@ -1,9 +1,9 @@ from __future__ import annotations __lazy_modules__ = { + "cibuildwheel.util", "cibuildwheel.util.cmd", "cibuildwheel.util.helpers", - "packaging", "packaging.utils", "shlex", } diff --git a/cibuildwheel/venv.py b/cibuildwheel/venv.py index 4253f7bca..85039da25 100644 --- a/cibuildwheel/venv.py +++ b/cibuildwheel/venv.py @@ -6,13 +6,13 @@ "cibuildwheel.util.file", "contextlib", "filelock", - "packaging", "packaging.markers", "packaging.requirements", "packaging.version", "pathlib", "shutil", "tomllib", + "typing", } import contextlib