diff --git a/src/auditwheel/main_show.py b/src/auditwheel/main_show.py index 39325a60..a79ec446 100644 --- a/src/auditwheel/main_show.py +++ b/src/auditwheel/main_show.py @@ -49,7 +49,10 @@ def execute(args, p): % (fn, winfo.overall_tag) ) - if wheel_policy.get_priority_by_name(winfo.pyfpe_tag) < wheel_policy.priority_highest: + if ( + wheel_policy.get_priority_by_name(winfo.pyfpe_tag) + < wheel_policy.priority_highest + ): printp( "This wheel uses the PyFPE_jbuf function, which is not compatible with the" " manylinux1 tag. (see https://www.python.org/dev/peps/pep-0513/" @@ -92,7 +95,9 @@ def execute(args, p): if args.verbose < 1: return - libs = winfo.external_refs[wheel_policy.get_policy_name(wheel_policy.priority_lowest)]["libs"] + libs = winfo.external_refs[ + wheel_policy.get_policy_name(wheel_policy.priority_lowest) + ]["libs"] if len(libs) == 0: printp("The wheel requires no external shared libraries! :)") else: diff --git a/tests/integration/test_manylinux.py b/tests/integration/test_manylinux.py index d2a48cd2..b633f551 100644 --- a/tests/integration/test_manylinux.py +++ b/tests/integration/test_manylinux.py @@ -16,7 +16,7 @@ import pytest from elftools.elf.elffile import ELFFile -from auditwheel.policy import get_arch_name, WheelPolicies +from auditwheel.policy import WheelPolicies, get_arch_name logger = logging.getLogger(__name__) diff --git a/tests/integration/test_policy_files.py b/tests/integration/test_policy_files.py index 41b92e51..357cf8a1 100644 --- a/tests/integration/test_policy_files.py +++ b/tests/integration/test_policy_files.py @@ -22,7 +22,11 @@ def test_policy_checks_glibc(): assert policy > wheel_policy.priority_lowest policy = versioned_symbols_policy(wheel_policy, {"some_library.so": {"GLIBC_999"}}) assert policy == wheel_policy.priority_lowest - policy = versioned_symbols_policy(wheel_policy, {"some_library.so": {"OPENSSL_1_1_0"}}) + policy = versioned_symbols_policy( + wheel_policy, {"some_library.so": {"OPENSSL_1_1_0"}} + ) assert policy == wheel_policy.priority_highest - policy = versioned_symbols_policy(wheel_policy, {"some_library.so": {"IAMALIBRARY"}}) + policy = versioned_symbols_policy( + wheel_policy, {"some_library.so": {"IAMALIBRARY"}} + ) assert policy == wheel_policy.priority_highest diff --git a/tests/unit/test_policy.py b/tests/unit/test_policy.py index e8178180..5a5971bf 100644 --- a/tests/unit/test_policy.py +++ b/tests/unit/test_policy.py @@ -227,7 +227,9 @@ def test_filter_libs(self): "libs": {lib: {"needed": [], "realpath": "/path/to/lib"} for lib in libs}, } wheel_policy = WheelPolicies.load() - full_external_refs = lddtree_external_references(wheel_policy.policies, lddtree, "/path/to/wheel") + full_external_refs = lddtree_external_references( + wheel_policy.policies, lddtree, "/path/to/wheel" + ) # Assert that each policy only has the unfiltered libs. for policy in full_external_refs: diff --git a/tests/unit/test_wheel_abi.py b/tests/unit/test_wheel_abi.py index 7a51d017..640be560 100644 --- a/tests/unit/test_wheel_abi.py +++ b/tests/unit/test_wheel_abi.py @@ -1,12 +1,12 @@ from __future__ import annotations import os -from auditwheel.policy import WheelPolicies import pretend import pytest from auditwheel import wheel_abi +from auditwheel.policy import WheelPolicies class TestGetWheelElfdata: