Automatic style fix

This commit is contained in:
robot-clickhouse 2023-09-13 17:16:17 +00:00
parent 84e311321d
commit 94b6d9ed05

View File

@ -32,11 +32,15 @@ def parse_args():
return parser.parse_args()
def paginated_list_to_list(paginated_list: github.PaginatedList.PaginatedList[T]) -> List[T]:
def paginated_list_to_list(
paginated_list: github.PaginatedList.PaginatedList[T],
) -> List[T]:
return [item for item in paginated_list]
READY_FOR_RELEASE_CHECK_NAME = "Ready for release"
def main():
args = parse_args()
if args.debug_helpers:
@ -69,7 +73,9 @@ def main():
unreleased_commits = paginated_list_to_list(
repo.get_commits(sha=pr.head.ref, since=latest_release_tag.tagger.date)
)
unreleased_commits.sort(key=lambda commit: commit.commit.committer.date, reverse=True)
unreleased_commits.sort(
key=lambda commit: commit.commit.committer.date, reverse=True
)
released = False
for commit in unreleased_commits:
@ -91,7 +97,6 @@ def main():
break
if __name__ == "__main__":
logging.getLogger().setLevel(logging.INFO)
main()