From 3df35a0af7cb8ca8d43073354a42f5072db88c84 Mon Sep 17 00:00:00 2001 From: alexAubin <4533074+alexAubin@users.noreply.github.com> Date: Tue, 19 Mar 2024 18:02:31 +0000 Subject: [PATCH] :art: Format Python code with Black --- tools/readme_generator/webhook.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/readme_generator/webhook.py b/tools/readme_generator/webhook.py index c82b9203a8..dcadc18d5a 100755 --- a/tools/readme_generator/webhook.py +++ b/tools/readme_generator/webhook.py @@ -18,10 +18,12 @@ def github_webhook_secret() -> str: return Path("github_webhook_secret").resolve().open(encoding="utf-8").read().strip() + @cache def github_login() -> str: return Path("login").resolve().open(encoding="utf-8").read().strip() + @cache def github_token() -> str: return Path("token").resolve().open(encoding="utf-8").read().strip() @@ -67,7 +69,7 @@ async def on_push(request: Request) -> HTTPResponse: f"https://{github_login()}:{github_token()}@github.com/{repository}", to_path=folder, single_branch=True, - branch=branch + branch=branch, ) generate_READMEs(folder) @@ -80,8 +82,7 @@ async def on_push(request: Request) -> HTTPResponse: return response.text("nothing to do") repo.index.commit( - "Auto-update READMEs", - author=Actor("yunohost-bot", "yunohost@yunohost.org") + "Auto-update READMEs", author=Actor("yunohost-bot", "yunohost@yunohost.org") ) repo.remote().push(quiet=False)