diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 66a3cf74..7cb87281 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.5 + rev: v0.9.1 hooks: - id: ruff args: ["--fix", "--show-fixes"] diff --git a/src/auditwheel/main_repair.py b/src/auditwheel/main_repair.py index 228e6dd8..f2bbb64b 100644 --- a/src/auditwheel/main_repair.py +++ b/src/auditwheel/main_repair.py @@ -55,9 +55,7 @@ def configure_parser(sub_parsers): "-L", "--lib-sdir", dest="LIB_SDIR", - help=( - "Subdirectory in packages to store copied libraries." ' (default: ".libs")' - ), + help=('Subdirectory in packages to store copied libraries. (default: ".libs")'), default=".libs", ) p.add_argument( @@ -65,7 +63,7 @@ def configure_parser(sub_parsers): "--wheel-dir", dest="WHEEL_DIR", type=abspath, - help=("Directory to store delocated wheels (default:" ' "wheelhouse/")'), + help=('Directory to store delocated wheels (default: "wheelhouse/")'), default="wheelhouse/", ) p.add_argument( diff --git a/src/auditwheel/patcher.py b/src/auditwheel/patcher.py index 0dc551e4..e538c67a 100644 --- a/src/auditwheel/patcher.py +++ b/src/auditwheel/patcher.py @@ -37,7 +37,7 @@ def _verify_patchelf() -> None: m = re.match(r"patchelf\s+(\d+(.\d+)?)", version) if m and tuple(int(x) for x in m.group(1).split(".")) >= (0, 14): return - msg = f"patchelf {version} found. auditwheel repair requires " "patchelf >= 0.14." + msg = f"patchelf {version} found. auditwheel repair requires patchelf >= 0.14." raise ValueError(msg) diff --git a/tests/integration/test_manylinux.py b/tests/integration/test_manylinux.py index 05b75023..f5b10503 100644 --- a/tests/integration/test_manylinux.py +++ b/tests/integration/test_manylinux.py @@ -984,7 +984,7 @@ def test_build_wheel_compat( policy_ = f"{pep600_policy}_{PLATFORM}" aliases_ = [f"{p}_{PLATFORM}" for p in aliases] if target_policy == policy_ or target_policy in aliases_: - target_tag = f'{policy_}.{".".join(aliases_)}' + target_tag = f"{policy_}.{'.'.join(aliases_)}" only_plat_arg = "--only-plat" if only_plat else "" # we shall ba able to repair the wheel for all targets @@ -1010,9 +1010,9 @@ def test_build_wheel_compat( with zipfile.ZipFile(os.path.join(io_folder, repaired_wheel)) as z: for file in z.namelist(): - assert not file.startswith( - "testsimple.libs" - ), "should not have empty .libs folder" + assert not file.startswith("testsimple.libs"), ( + "should not have empty .libs folder" + ) docker_exec(docker_python, f"pip install /io/{repaired_wheel}") docker_exec(