@@ -116,7 +116,7 @@ def add_from_filesystem(
116116 log .info (
117117 f"{ Fore .CYAN } i{ Style .RESET_ALL } No config specified and no default "
118118 f"home config, will use/create "
119- f"{ Fore .BLUE } { config_file_path } { Style .RESET_ALL } "
119+ f"{ Fore .BLUE } { config_file_path } { Style .RESET_ALL } " ,
120120 )
121121 elif len (home_configs ) > 1 :
122122 log .error (
@@ -148,7 +148,7 @@ def add_from_filesystem(
148148 log .info (
149149 f"{ Fore .CYAN } i{ Style .RESET_ALL } Config file "
150150 f"{ Fore .BLUE } { config_file_path } { Style .RESET_ALL } "
151- f"not found. A new one will be created."
151+ f"not found. A new one will be created." ,
152152 )
153153
154154 found_repos : list [
@@ -224,7 +224,7 @@ def add_from_filesystem(
224224 if not found_repos :
225225 log .info (
226226 f"{ Fore .YELLOW } !{ Style .RESET_ALL } No git repositories found in "
227- f"{ Fore .BLUE } { scan_dir } { Style .RESET_ALL } . Nothing to add."
227+ f"{ Fore .BLUE } { scan_dir } { Style .RESET_ALL } . Nothing to add." ,
228228 )
229229 return
230230
@@ -244,47 +244,47 @@ def add_from_filesystem(
244244 log .info (
245245 f"{ Fore .YELLOW } !{ Style .RESET_ALL } Found "
246246 f"{ Fore .CYAN } { len (existing_repos )} { Style .RESET_ALL } "
247- f"existing repositories already in configuration."
247+ f"existing repositories already in configuration." ,
248248 )
249249 else :
250250 # Show details only for small numbers
251251 log .info (
252252 f"{ Fore .YELLOW } !{ Style .RESET_ALL } Found "
253253 f"{ Fore .CYAN } { len (existing_repos )} { Style .RESET_ALL } "
254- f"existing repositories in configuration:"
254+ f"existing repositories in configuration:" ,
255255 )
256256 for name , url , key in existing_repos :
257257 log .info (
258258 f" { Fore .BLUE } •{ Style .RESET_ALL } "
259259 f"{ Fore .CYAN } { name } { Style .RESET_ALL } "
260260 f"({ Fore .YELLOW } { url } { Style .RESET_ALL } ) at "
261261 f"{ Fore .MAGENTA } { key } { name } { Style .RESET_ALL } "
262- f"in { Fore .BLUE } { config_file_path } { Style .RESET_ALL } "
262+ f"in { Fore .BLUE } { config_file_path } { Style .RESET_ALL } " ,
263263 )
264264
265265 if not repos_to_add :
266266 if existing_repos :
267267 log .info (
268268 f"{ Fore .GREEN } ✓{ Style .RESET_ALL } All found repositories already exist "
269- f"in the configuration. { Fore .GREEN } Nothing to do.{ Style .RESET_ALL } "
269+ f"in the configuration. { Fore .GREEN } Nothing to do.{ Style .RESET_ALL } " ,
270270 )
271271 return
272272
273273 # Show what will be added
274274 log .info (
275275 f"\n { Fore .GREEN } Found { len (repos_to_add )} new "
276276 f"{ 'repository' if len (repos_to_add ) == 1 else 'repositories' } "
277- f"to add:{ Style .RESET_ALL } "
277+ f"to add:{ Style .RESET_ALL } " ,
278278 )
279279 for repo_name , repo_url , _determined_base_key in repos_to_add :
280280 log .info (
281281 f" { Fore .GREEN } +{ Style .RESET_ALL } { Fore .CYAN } { repo_name } { Style .RESET_ALL } "
282- f"({ Fore .YELLOW } { repo_url } { Style .RESET_ALL } )"
282+ f"({ Fore .YELLOW } { repo_url } { Style .RESET_ALL } )" ,
283283 )
284284
285285 if not yes :
286286 confirm = input (
287- f"\n { Fore .CYAN } Add these repositories? [y/N]: { Style .RESET_ALL } "
287+ f"\n { Fore .CYAN } Add these repositories? [y/N]: { Style .RESET_ALL } " ,
288288 ).lower ()
289289 if confirm not in {"y" , "yes" }:
290290 log .info (f"{ Fore .RED } ✗{ Style .RESET_ALL } Aborted by user." )
@@ -307,7 +307,7 @@ def add_from_filesystem(
307307 f"{ Fore .GREEN } +{ Style .RESET_ALL } Adding "
308308 f"{ Fore .CYAN } '{ repo_name } '{ Style .RESET_ALL } "
309309 f"({ Fore .YELLOW } { repo_url } { Style .RESET_ALL } ) under "
310- f"'{ Fore .MAGENTA } { determined_base_key } { Style .RESET_ALL } '."
310+ f"'{ Fore .MAGENTA } { determined_base_key } { Style .RESET_ALL } '." ,
311311 )
312312 changes_made = True
313313
@@ -316,7 +316,7 @@ def add_from_filesystem(
316316 save_config_yaml (config_file_path , raw_config )
317317 log .info (
318318 f"{ Fore .GREEN } ✓{ Style .RESET_ALL } Successfully updated "
319- f"{ Fore .BLUE } { config_file_path } { Style .RESET_ALL } ."
319+ f"{ Fore .BLUE } { config_file_path } { Style .RESET_ALL } ." ,
320320 )
321321 except Exception :
322322 log .exception (f"Error saving config to { config_file_path } " )
@@ -327,5 +327,5 @@ def add_from_filesystem(
327327 raise
328328 else :
329329 log .info (
330- f"{ Fore .GREEN } ✓{ Style .RESET_ALL } No changes made to the configuration."
330+ f"{ Fore .GREEN } ✓{ Style .RESET_ALL } No changes made to the configuration." ,
331331 )
0 commit comments