From d61ca0d43b279cc8d6935a40493e61cd043b6cf1 Mon Sep 17 00:00:00 2001 From: alexAubin <4533074+alexAubin@users.noreply.github.com> Date: Wed, 1 May 2024 20:58:24 +0000 Subject: [PATCH] :art: Format Python code with Black --- autoupdate_app_sources/autoupdate_app_sources.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index 5198406..70c1be0 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -53,13 +53,11 @@ STRATEGIES = [ @cache -def get_github() -> ( - tuple[ - Optional[tuple[str, str]], - Optional[github.Github], - Optional[github.InputGitAuthor], - ] -): +def get_github() -> tuple[ + Optional[tuple[str, str]], + Optional[github.Github], + Optional[github.InputGitAuthor], +]: try: github_login = ( (REPO_APPS_ROOT / ".github_login") @@ -454,8 +452,8 @@ class AppAutoUpdater: api: Union[GithubAPI, GitlabAPI, GiteaForgejoAPI] if remote_type == "github": - assert ( - upstream and upstream.startswith("https://github.com/") + assert upstream and upstream.startswith( + "https://github.com/" ), f"When using strategy {strategy}, having a defined upstream code repo on github.com is required" api = GithubAPI(upstream, auth=get_github()[0]) if remote_type == "gitlab":