Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #529

Merged
merged 2 commits into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
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
Loading