Skip to content

Commit

Permalink
Format with stock black
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Jun 8, 2024
1 parent a1c0c07 commit 1db339a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/update_switcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 1db339a

Please sign in to comment.