Skip to content

Commit 592630e

Browse files
committed
[stubsabot] Process packages alphabetically
This makes it easier to find a package and spot any problems.
1 parent b2d38dc commit 592630e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/stubsabot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def get_origin_owner() -> str:
715715
output = subprocess.check_output(["git", "remote", "get-url", "origin"], text=True).strip()
716716
match = re.match(r"(git@github.com:|https://github.com/)(?P<owner>[^/]+)/(?P<repo>[^/\s]+)", output)
717717
assert match is not None, f"Couldn't identify origin's owner: {output!r}"
718-
assert match.group("repo").removesuffix(".git") == "typeshed", f'Unexpected repo: {match.group("repo")!r}'
718+
assert match.group("repo").removesuffix(".git") == "typeshed", f"Unexpected repo: {match.group('repo')!r}"
719719
return match.group("owner")
720720

721721

@@ -965,7 +965,7 @@ async def main() -> int:
965965
if args.distributions:
966966
dists_to_update = args.distributions
967967
else:
968-
dists_to_update = [path.name for path in STUBS_PATH.iterdir()]
968+
dists_to_update = sorted(path.name for path in STUBS_PATH.iterdir())
969969

970970
if args.action_level > ActionLevel.nothing:
971971
subprocess.run(["git", "update-index", "--refresh"], capture_output=True, check=False)

0 commit comments

Comments
 (0)