Skip to content

Commit 795e168

Browse files
Ruff Formatter 0.9.0hartwork
Ruff Formatter 0.9.0
authored andcommitted
Mass-apply ruff format 0.9.0
1 parent f33c323 commit 795e168

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

git_delete_merged_branches/_engine.py

+7-10
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ def _interactively_edit_list(
8989
raise _TooFewOptionsAvailable
9090

9191
help = (
92-
"(Press [Space] to toggle selection, [Enter]/[Return] to accept"
93-
", [Ctrl]+[C] to quit.)"
92+
"(Press [Space] to toggle selection, [Enter]/[Return] to accept, [Ctrl]+[C] to quit.)"
9493
)
9594

9695
old_names = set(old_names)
@@ -136,7 +135,7 @@ def _configure_required_branches(self, git_config) -> set[str]:
136135
def _configure_excluded_branches(self, git_config, new_required_branches: set[str]):
137136
valid_names = sorted(set(self._git.find_all_branch_names()) - new_required_branches)
138137
self._interactively_edit_list(
139-
"[2/3] Which of these branches (if any)" " should be kept around at all times?",
138+
"[2/3] Which of these branches (if any) should be kept around at all times?",
140139
valid_names,
141140
self.find_excluded_branches(git_config),
142141
self._FORMAT_BRANCH_EXCLUDED,
@@ -145,8 +144,7 @@ def _configure_excluded_branches(self, git_config, new_required_branches: set[st
145144

146145
def _configure_enabled_remotes(self, git_config):
147146
self._interactively_edit_list(
148-
"[3/3] Which remotes (if any) do you want to enable"
149-
" deletion of merged branches for?",
147+
"[3/3] Which remotes (if any) do you want to enable deletion of merged branches for?",
150148
self._git.find_remotes(),
151149
self.find_enabled_remotes(git_config),
152150
self._FORMAT_REMOTE_ENABLED,
@@ -278,14 +276,14 @@ def _find_branches_merged_using_git_cherry(
278276
if candidates_for_squashed_merges:
279277
if self._git.has_detached_heads():
280278
self._messenger.tell_info(
281-
"Skipped further inspection of branches" " because of detached HEAD."
279+
"Skipped further inspection of branches because of detached HEAD."
282280
)
283281
check_for_squash_merges = False
284282

285283
if check_for_squash_merges:
286284
if self._git.has_uncommitted_changes():
287285
self._messenger.tell_info(
288-
"Skipped further inspection of branches" " due to uncommitted changes."
286+
"Skipped further inspection of branches due to uncommitted changes."
289287
)
290288
check_for_squash_merges = False
291289

@@ -354,8 +352,7 @@ def _delete_local_merged_branches_for(self, required_target_branches, excluded_b
354352
if branch_would_be_analyzed:
355353
excluded_branches = excluded_branches | {working_tree_branch}
356354
self._messenger.tell_info(
357-
f"Skipped branch {working_tree_branch!r} "
358-
"because it is currently checked out."
355+
f"Skipped branch {working_tree_branch!r} because it is currently checked out."
359356
)
360357

361358
truly_merged, defacto_merged = self._find_branches_merged_to_all_targets_for_single_remote(
@@ -398,7 +395,7 @@ def _delete_remote_merged_branches_for(
398395
for branch_name in required_target_branches
399396
):
400397
self._messenger.tell_info(
401-
f"Skipped remote {remote_name!r} " "as it does not have all required branches."
398+
f"Skipped remote {remote_name!r} as it does not have all required branches."
402399
)
403400
return
404401

git_delete_merged_branches/_messenger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def tell_command(self, argv, comment):
4545
self._produce_and_request_air("")
4646
epilog = f" # {comment}" if comment else ""
4747
argv = [escape_for_shell_display(arg) for arg in argv]
48-
message = f'# {" ".join(argv)}'
48+
message = f"# {' '.join(argv)}"
4949
if self._colorize:
5050
message = f"{_COMMAND_COLOR}{message}{_RESET_COLOR}"
5151
message += epilog

0 commit comments

Comments
 (0)