@@ -18,7 +18,8 @@ def print_header(msg_type: str, text: str):
1818 :type text: str
1919 """
2020 print (
21- f"[yellow]{ '#' * len (text )} [/yellow]\n [blue]{ get_current_datetime ()} { msg_type .upper ()} ][/blue] { text } \n [yellow]{ '#' * len (text )} [/yellow]\n "
21+ f"[yellow]{ '#' * len (text )} [/yellow]\n [blue]{ get_current_datetime ()} { msg_type .upper ()} ][/blue]"
22+ f" { text } \n [yellow]{ '#' * len (text )} [/yellow]\n "
2223 )
2324
2425
@@ -32,7 +33,8 @@ def print_step(msg_type: str, text: str):
3233 :type text: str
3334 """
3435 print (
35- f"[yellow]{ '=' * 16 } [/yellow] [blue][{ get_current_datetime ()} { msg_type .upper ()} ][/blue] { text } "
36+ f"[yellow]{ '=' * 16 } [/yellow]"
37+ f" [blue][{ get_current_datetime ()} { msg_type .upper ()} ][/blue] { text } "
3638 )
3739
3840
@@ -46,7 +48,8 @@ def print_substep(msg_type: str, text: str):
4648 :type text: str
4749 """
4850 print (
49- f"[cyan]{ '=' * 8 } [/cyan]\n [blue][{ get_current_datetime ()} { msg_type .upper ()} ][/blue] { text } "
51+ f"[cyan]{ '=' * 8 } [/cyan]\n [blue][{ get_current_datetime ()} { msg_type .upper ()} ][/blue]"
52+ f" { text } "
5053 )
5154
5255
@@ -83,7 +86,8 @@ def run_command(command: str) -> int:
8386
8487 print_message (
8588 "info" ,
86- f"[italic] Execute command: [/italic]: [white on black]{ command } [/white on black]" ,
89+ f"[italic] Execute command: [/italic]: [white on black]{ command } [/white on"
90+ " black]" ,
8791 )
8892
8993 result = subprocess .run (
@@ -92,7 +96,8 @@ def run_command(command: str) -> int:
9296
9397 if result .returncode != 0 :
9498 raise RuntimeError (
95- f'Command "{ command } " failed with exit code { result .returncode } :\n { result .stderr .decode ()} '
99+ f'Command "{ command } " failed with exit code'
100+ f" { result .returncode } :\n { result .stderr .decode ()} "
96101 )
97102 else :
98103 print (f'[green bold]Successfully run[/green bold] "{ command } "' .strip ())
@@ -122,7 +127,8 @@ def validate_project_name(project_name: str):
122127 """
123128 if not re .match (r"^[a-zA-Z_][a-zA-Z0-9_]*$" , project_name ):
124129 raise ValueError (
125- "Invalid project name. Must start with a letter or underscore and contain only letters, digits, and underscores."
130+ "Invalid project name. Must start with a letter or underscore and contain"
131+ " only letters, digits, and underscores."
126132 )
127133
128134
0 commit comments