Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent c4b2037 commit fa15b20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src/auditwheel/main_repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,15 @@ 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(
"-w",
"--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(
Expand Down
2 changes: 1 addition & 1 deletion src/auditwheel/patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_manylinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit fa15b20

Please sign in to comment.