Skip to content

Commit ddf189a

Browse files
committed
Format release verification script
1 parent 7720ff0 commit ddf189a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/scripts/release_verify.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ def _checked_in_version() -> str:
4040
)
4141
if pyproject_version.startswith("v"):
4242
raise RuntimeError("Checked-in version must not start with 'v'")
43-
if not re.fullmatch(
44-
r"[0-9]+(?:\.[0-9]+)+(?:[a-zA-Z0-9_.+-]+)?", pyproject_version
45-
):
43+
if not re.fullmatch(r"[0-9]+(?:\.[0-9]+)+(?:[a-zA-Z0-9_.+-]+)?", pyproject_version):
4644
raise RuntimeError(f"Invalid checked-in version: {pyproject_version!r}")
4745
return pyproject_version
4846

@@ -77,7 +75,9 @@ def verify_dist(args: argparse.Namespace) -> None:
7775
if sdists != [expected_sdist]:
7876
raise RuntimeError(f"Expected only sdist {expected_sdist!r}, found {sdists!r}")
7977
if len(wheels) != 5:
80-
raise RuntimeError(f"Expected 5 platform wheels, found {len(wheels)}: {wheels!r}")
78+
raise RuntimeError(
79+
f"Expected 5 platform wheels, found {len(wheels)}: {wheels!r}"
80+
)
8181

8282
for name in files:
8383
if not name.startswith(f"temporalio-{args.version}"):
@@ -99,7 +99,9 @@ def verify_dist(args: argparse.Namespace) -> None:
9999
if not any(predicate(name) for name in wheels)
100100
]
101101
if missing:
102-
raise RuntimeError(f"Missing expected platform wheels: {missing!r}; found {wheels!r}")
102+
raise RuntimeError(
103+
f"Missing expected platform wheels: {missing!r}; found {wheels!r}"
104+
)
103105

104106
print("Verified release artifacts:")
105107
for name in files:

0 commit comments

Comments
 (0)