1
0
Fork 0

🎨 Format Python code with Black (#2462)

Co-authored-by: yunohost-bot <14998418+yunohost-bot@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2024-07-12 19:09:32 +02:00 committed by GitHub
parent a6f1603989
commit a41fdfe3ef

View file

@ -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