Skip to content

Commit fa15b20

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c4b2037 commit fa15b20

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/auditwheel/main_repair.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,15 @@ def configure_parser(sub_parsers):
5555
"-L",
5656
"--lib-sdir",
5757
dest="LIB_SDIR",
58-
help=(
59-
"Subdirectory in packages to store copied libraries." ' (default: ".libs")'
60-
),
58+
help=('Subdirectory in packages to store copied libraries. (default: ".libs")'),
6159
default=".libs",
6260
)
6361
p.add_argument(
6462
"-w",
6563
"--wheel-dir",
6664
dest="WHEEL_DIR",
6765
type=abspath,
68-
help=("Directory to store delocated wheels (default:" ' "wheelhouse/")'),
66+
help=('Directory to store delocated wheels (default: "wheelhouse/")'),
6967
default="wheelhouse/",
7068
)
7169
p.add_argument(

src/auditwheel/patcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _verify_patchelf() -> None:
3737
m = re.match(r"patchelf\s+(\d+(.\d+)?)", version)
3838
if m and tuple(int(x) for x in m.group(1).split(".")) >= (0, 14):
3939
return
40-
msg = f"patchelf {version} found. auditwheel repair requires " "patchelf >= 0.14."
40+
msg = f"patchelf {version} found. auditwheel repair requires patchelf >= 0.14."
4141
raise ValueError(msg)
4242

4343

tests/integration/test_manylinux.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ def test_build_wheel_compat(
984984
policy_ = f"{pep600_policy}_{PLATFORM}"
985985
aliases_ = [f"{p}_{PLATFORM}" for p in aliases]
986986
if target_policy == policy_ or target_policy in aliases_:
987-
target_tag = f'{policy_}.{".".join(aliases_)}'
987+
target_tag = f"{policy_}.{'.'.join(aliases_)}"
988988

989989
only_plat_arg = "--only-plat" if only_plat else ""
990990
# we shall ba able to repair the wheel for all targets
@@ -1010,9 +1010,9 @@ def test_build_wheel_compat(
10101010

10111011
with zipfile.ZipFile(os.path.join(io_folder, repaired_wheel)) as z:
10121012
for file in z.namelist():
1013-
assert not file.startswith(
1014-
"testsimple.libs"
1015-
), "should not have empty .libs folder"
1013+
assert not file.startswith("testsimple.libs"), (
1014+
"should not have empty .libs folder"
1015+
)
10161016

10171017
docker_exec(docker_python, f"pip install /io/{repaired_wheel}")
10181018
docker_exec(

0 commit comments

Comments
 (0)