Skip to content
Snippets Groups Projects
Verified Commit 8e22d41d authored by Romain Deville's avatar Romain Deville
Browse files

:art: Improve string format in plugins.py

parent 3ca09027
No related branches found
No related tags found
No related merge requests found
...@@ -837,10 +837,8 @@ def update_version(env: dict) -> None: ...@@ -837,10 +837,8 @@ def update_version(env: dict) -> None:
if last_major >= 0: if last_major >= 0:
mike_version.append( mike_version.append(
{ {
"version": "{}.{}".format(last_major, last_minor), "version": f"{last_major}.{last_minor}",
"title": "{}.{}.{}".format( "title": f"{last_major}.{last_minor}.{last_patch}",
last_major, last_minor, last_patch
),
"aliases": [], "aliases": [],
} }
) )
...@@ -850,10 +848,8 @@ def update_version(env: dict) -> None: ...@@ -850,10 +848,8 @@ def update_version(env: dict) -> None:
if last_minor >= 0: if last_minor >= 0:
mike_version.append( mike_version.append(
{ {
"version": "{}.{}".format(last_major, last_minor), "version": f"{last_major}.{last_minor}",
"title": "{}.{}.{}".format( "title": f"{last_major}.{last_minor}.{last_patch}",
last_major, last_minor, last_patch
),
"aliases": [], "aliases": [],
} }
) )
...@@ -863,8 +859,8 @@ def update_version(env: dict) -> None: ...@@ -863,8 +859,8 @@ def update_version(env: dict) -> None:
last_patch = patch last_patch = patch
mike_version.append( mike_version.append(
{ {
"version": "{}.{}".format(last_major, last_minor), "version": f"{last_major}.{last_minor}",
"title": "{}.{}.{}".format(last_major, last_minor, last_patch), "title": f"{last_major}.{last_minor}.{last_patch}",
"aliases": ["latest"], "aliases": ["latest"],
} }
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment