From a41fdfe3ef7a649acd3de136323a34881ea1a611 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 12 Jul 2024 19:09:32 +0200 Subject: [PATCH] :art: Format Python code with Black (#2462) Co-authored-by: yunohost-bot <14998418+yunohost-bot@users.noreply.github.com> --- autoupdate_app_sources/autoupdate_app_sources.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index e141b8e..48c56d2 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -659,10 +659,11 @@ def main() -> None: help="If not passed, the script will run on the catalog. Github keys required.", ) parser.add_argument( - "-w", "--latest-commit-weekly", + "-w", + "--latest-commit-weekly", action=argparse.BooleanOptionalAction, default=False, - help="For latest_commit versions, only run weekly to prevent too many PRs" + help="For latest_commit versions, only run weekly to prevent too many PRs", ) parser.add_argument( "--edit", @@ -706,7 +707,10 @@ def main() -> None: with multiprocessing.Pool(processes=args.processes) as pool: tasks = pool.imap( run_autoupdate_for_multiprocessing, - ((app, args.edit, args.commit, args.pr, args.latest_commit_weekly) for app in apps), + ( + (app, args.edit, args.commit, args.pr, args.latest_commit_weekly) + for app in apps + ), ) for app, result in tqdm.tqdm(tasks, total=len(apps), ascii=" ยท#"): state, current_version, main_version, pr_url = result