From f3ad45af0d4af0888655b80c2efdd3c1dfc8e5cd Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 20 May 2024 15:29:30 -0700 Subject: [PATCH] Fix python formatting --- .github/workflows/release-asset-audit.py | 54 +++++++++++++----------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release-asset-audit.py b/.github/workflows/release-asset-audit.py index 02ba426293af67..4c793a754b9522 100644 --- a/.github/workflows/release-asset-audit.py +++ b/.github/workflows/release-asset-audit.py @@ -4,37 +4,41 @@ token = sys.argv[1] gh = github.Github(login_or_token=token) -repo = gh.get_repo('llvm/llvm-project') +repo = gh.get_repo("llvm/llvm-project") -uploaders = set([ - 'DimitryAndric', - 'stefanp-ibm', - 'lei137', - 'omjavaid', - 'nicolerabjohn', - 'amy-kwan', - 'mandlebug', - 'zmodem', - 'androm3da', - 'tru', - 'rovka', - 'rorth', - 'quinnlp', - 'kamaub', - 'abrisco', - 'jakeegan', - 'maryammo', - 'tstellar', - 'github-actions[bot]' -]) +uploaders = set( + [ + "DimitryAndric", + "stefanp-ibm", + "lei137", + "omjavaid", + "nicolerabjohn", + "amy-kwan", + "mandlebug", + "zmodem", + "androm3da", + "tru", + "rovka", + "rorth", + "quinnlp", + "kamaub", + "abrisco", + "jakeegan", + "maryammo", + "tstellar", + "github-actions[bot]" + ] +) for release in repo.get_releases(): print("Release:", release.title) for asset in release.get_assets(): created_at = asset.created_at updated_at = "" if asset.created_at == asset.updated_at else asset.updated_at - print(f'{asset.name} : {asset.uploader.login} [{created_at} {updated_at}] ( {asset.download_count} )') + print( + f"{asset.name} : {asset.uploader.login} [{created_at} {updated_at}] ( {asset.download_count} )" + ) if asset.uploader.login not in uploaders: - print("Invalid uploader") - sys.exit(1) + print("Invalid uploader") + sys.exit(1)