From 1db339a09ce4f88aa2c9bf3f2df9f8fd4d198625 Mon Sep 17 00:00:00 2001 From: Marius Merschformann Date: Sat, 8 Jun 2024 02:00:54 +0200 Subject: [PATCH] Format with stock black --- docs/update_switcher.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/update_switcher.py b/docs/update_switcher.py index d80e172c7..fabf9e76a 100644 --- a/docs/update_switcher.py +++ b/docs/update_switcher.py @@ -11,7 +11,9 @@ def main(): # Define CLI arguments parser = argparse.ArgumentParser(description="Update switcher.json") - parser.add_argument("--version", "-v", required=True, type=str, help="The new version to add") + parser.add_argument( + "--version", "-v", required=True, type=str, help="The new version to add" + ) args = parser.parse_args() # Setup path to switcher.json (relative to this script) and load it @@ -39,7 +41,9 @@ def main(): # Make sure version is unique if any(version["version"] == args.version for version in switcher): - print(f"Version {args.version} already exists in switcher.json. Not adding it again.") + print( + f"Version {args.version} already exists in switcher.json. Not adding it again." + ) else: switcher.insert(latest_index + 1, new_version)