From 108caab652bccc38995ac9a2d4283d4160b6dbd1 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Thu, 7 Dec 2023 08:52:17 +0100
Subject: [PATCH] [qa] Fixes

---
 src/idiap_devtools/click.py          | 2 +-
 src/idiap_devtools/gitlab/release.py | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/idiap_devtools/click.py b/src/idiap_devtools/click.py
index 1bea200..0d6d1a7 100644
--- a/src/idiap_devtools/click.py
+++ b/src/idiap_devtools/click.py
@@ -198,7 +198,7 @@ def validate_profile(_: click.Context, __: str, value: str) -> str:
     if not (profile_path / "profile.toml").exists():
         raise click.BadParameter(
             f"Error while attempting to load the profile `{value}' from "
-            f"`{str(profile_path/'profile.toml')}' - file does not exist!"
+            f"`{str(profile_path / 'profile.toml')}' - file does not exist!"
         )
 
     return value
diff --git a/src/idiap_devtools/gitlab/release.py b/src/idiap_devtools/gitlab/release.py
index 90bc020..fe02ede 100644
--- a/src/idiap_devtools/gitlab/release.py
+++ b/src/idiap_devtools/gitlab/release.py
@@ -490,10 +490,10 @@ def get_next_version(
     major, minor, patch = latest_tag_name.split(".")
 
     if bump == "major":
-        return f"v{int(major)+1}.0.0"
+        return f"v{int(major) + 1}.0.0"
 
     if bump == "minor":
-        return f"v{major}.{int(minor)+1}.0"
+        return f"v{major}.{int(minor) + 1}.0"
 
     # it is a patch release, proceed with caution for pre-releases
 
@@ -509,7 +509,7 @@ def get_next_version(
         patch_int = int(patch)
 
     # increment the last number in 'v#.#.#'
-    return f"v{major}.{minor}.{patch_int+1}"
+    return f"v{major}.{minor}.{patch_int + 1}"
 
 
 def update_files_at_default_branch(
-- 
GitLab