diff --git a/arkindex/training/management/commands/migrate_workers.py b/arkindex/training/management/commands/migrate_workers.py
index 6e011fe5a60d43123819b71075eb2872f2fca0db..e499d74e2f0cfa10576d082289d02afb1ab147ea 100644
--- a/arkindex/training/management/commands/migrate_workers.py
+++ b/arkindex/training/management/commands/migrate_workers.py
@@ -46,7 +46,7 @@ def choose(instances, name_field="name", title="Pick one item", allow_skip=False
         choices["0"] = choices["skip"] = None
     for i, (id, name) in enumerate(items, 1):
         print(f"{i}: {id} {name}")
-        choices[str((i))] = choices[str(id)] = choices[name] = id
+        choices[str(i)] = choices[str(id)] = choices[name] = id
 
     # Get the first valid choice
     while True:
diff --git a/ruff.toml b/ruff.toml
index 6d75c7c631a3da36ac0b182460741c73e08ba939..1232c30820701cfa95c2a7cfea765841389e0617 100644
--- a/ruff.toml
+++ b/ruff.toml
@@ -43,6 +43,8 @@ select = [
     "UP031",
     # f-string
     "UP032",
+    # extraneous-parentheses
+    "UP034",
 ]
 ignore = ["E501", "RET502", "RET503"]