Skip to content

Commit 9d654b1

Browse files
committed
Applied recommended changes
1 parent 83633a6 commit 9d654b1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/murfey/client/tui/screens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ def compose(self):
10121012
name_root += st
10131013
if dest_num:
10141014
dest = str(
1015-
dest_path.parent / f"{name_root}{dest_num+1}"
1015+
dest_path.parent / f"{name_root}{dest_num + 1}"
10161016
)
10171017
else:
10181018
dest = str(dest_path.parent / f"{name_root}2")

src/murfey/server/api/bootstrap.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def parse_cygwin_request(
308308
raise ValueError(f"{request_path!r} is not a valid request path")
309309

310310
try:
311-
url = f'{find_cygwin_mirror()}{quote(request_path, safe="/")}'
311+
url = f"{find_cygwin_mirror()}{quote(request_path, safe='/')}"
312312
except Exception:
313313
raise HTTPException(
314314
status_code=503, detail="Could not identify a suitable Cygwin mirror"
@@ -533,7 +533,7 @@ def get_msys2_environment_index(
533533
raise ValueError(f"{system!r} is not a valid msys2 environment")
534534

535535
# Construct URL to main MSYS repo and get response
536-
arch_url = f'{msys2_url}/{quote(system, safe="/")}'
536+
arch_url = f"{msys2_url}/{quote(system, safe='/')}"
537537
response = http_session.get(arch_url)
538538

539539
# Parse and rewrite package index content
@@ -579,7 +579,7 @@ def get_msys2_package_index(
579579

580580
# Construct URL to main MSYS repo and get response
581581
package_list_url = (
582-
f'{msys2_url}/{quote(system, safe="/")}/{quote(environment, safe="/")}'
582+
f"{msys2_url}/{quote(system, safe='/')}/{quote(environment, safe='/')}"
583583
)
584584
response = http_session.get(package_list_url)
585585
return Response(
@@ -617,7 +617,7 @@ def get_msys2_package_file(
617617
raise ValueError(f"{package!r} is not a valid package name")
618618

619619
# Construct URL to main MSYS repo and get response
620-
package_url = f'{msys2_url}/{quote(system, safe="/")}/{quote(environment, safe="/")}/{quote(package, safe="/")}'
620+
package_url = f"{msys2_url}/{quote(system, safe='/')}/{quote(environment, safe='/')}/{quote(package, safe='/')}"
621621
response = http_session.get(package_url)
622622
if response.status_code != 200:
623623
raise HTTPException(status_code=response.status_code)

src/murfey/server/feedback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ def _register_3d_batch(message: dict, _db, demo: bool = False):
12661266
other_options["initial_model"] = str(rescaled_initial_model_path)
12671267
next_job = feedback_params.next_job
12681268
class3d_dir = (
1269-
f"{class3d_message['class3d_dir']}{(feedback_params.next_job+1):03}"
1269+
f"{class3d_message['class3d_dir']}{(feedback_params.next_job + 1):03}"
12701270
)
12711271
feedback_params.next_job += 1
12721272
_db.add(feedback_params)
@@ -1305,7 +1305,7 @@ def _register_3d_batch(message: dict, _db, demo: bool = False):
13051305
# For the first batch, start a container and set the database to wait
13061306
next_job = feedback_params.next_job
13071307
class3d_dir = (
1308-
f"{class3d_message['class3d_dir']}{(feedback_params.next_job+1):03}"
1308+
f"{class3d_message['class3d_dir']}{(feedback_params.next_job + 1):03}"
13091309
)
13101310
class3d_grp_uuid = _murfey_id(message["program_id"], _db)[0]
13111311
class_uuids = _murfey_id(message["program_id"], _db, number=4)

0 commit comments

Comments
 (0)