@@ -89,8 +89,7 @@ def _interactively_edit_list(
89
89
raise _TooFewOptionsAvailable
90
90
91
91
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.)"
94
93
)
95
94
96
95
old_names = set (old_names )
@@ -136,7 +135,7 @@ def _configure_required_branches(self, git_config) -> set[str]:
136
135
def _configure_excluded_branches (self , git_config , new_required_branches : set [str ]):
137
136
valid_names = sorted (set (self ._git .find_all_branch_names ()) - new_required_branches )
138
137
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?" ,
140
139
valid_names ,
141
140
self .find_excluded_branches (git_config ),
142
141
self ._FORMAT_BRANCH_EXCLUDED ,
@@ -145,8 +144,7 @@ def _configure_excluded_branches(self, git_config, new_required_branches: set[st
145
144
146
145
def _configure_enabled_remotes (self , git_config ):
147
146
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?" ,
150
148
self ._git .find_remotes (),
151
149
self .find_enabled_remotes (git_config ),
152
150
self ._FORMAT_REMOTE_ENABLED ,
@@ -278,14 +276,14 @@ def _find_branches_merged_using_git_cherry(
278
276
if candidates_for_squashed_merges :
279
277
if self ._git .has_detached_heads ():
280
278
self ._messenger .tell_info (
281
- "Skipped further inspection of branches" " because of detached HEAD."
279
+ "Skipped further inspection of branches because of detached HEAD."
282
280
)
283
281
check_for_squash_merges = False
284
282
285
283
if check_for_squash_merges :
286
284
if self ._git .has_uncommitted_changes ():
287
285
self ._messenger .tell_info (
288
- "Skipped further inspection of branches" " due to uncommitted changes."
286
+ "Skipped further inspection of branches due to uncommitted changes."
289
287
)
290
288
check_for_squash_merges = False
291
289
@@ -354,8 +352,7 @@ def _delete_local_merged_branches_for(self, required_target_branches, excluded_b
354
352
if branch_would_be_analyzed :
355
353
excluded_branches = excluded_branches | {working_tree_branch }
356
354
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."
359
356
)
360
357
361
358
truly_merged , defacto_merged = self ._find_branches_merged_to_all_targets_for_single_remote (
@@ -398,7 +395,7 @@ def _delete_remote_merged_branches_for(
398
395
for branch_name in required_target_branches
399
396
):
400
397
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."
402
399
)
403
400
return
404
401
0 commit comments