Skip to content

Commit 9b90477

Browse files
joerickhenryiii
andauthored
Apply suggestions from code review
Co-authored-by: Henry Schreiner <[email protected]>
1 parent abc10b6 commit 9b90477

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cibuildwheel/oci_container.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class OCIContainerEngineConfig:
3232
def from_config_string(config_string: str) -> OCIContainerEngineConfig:
3333
config_dict = parse_key_value_string(config_string, ["name"])
3434
name = " ".join(config_dict["name"])
35-
if name not in ["docker", "podman"]:
35+
if name not in {"docker", "podman"}:
3636
msg = f"unknown container engine {name}"
3737
raise ValueError(msg)
3838

unit_test/oci_container_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
pm = platform.machine()
2222
if pm == "x86_64":
2323
DEFAULT_IMAGE = "quay.io/pypa/manylinux2014_x86_64:2020-05-17-2f8ac3b"
24-
elif pm in ["aarch64", "arm64"]:
24+
elif pm in {"aarch64", "arm64"}:
2525
DEFAULT_IMAGE = "quay.io/pypa/manylinux2014_aarch64:2020-05-17-2f8ac3b"
2626
elif pm == "ppc64le":
2727
DEFAULT_IMAGE = "quay.io/pypa/manylinux2014_ppc64le:2020-05-17-2f8ac3b"

0 commit comments

Comments
 (0)