@@ -102,21 +102,16 @@ def maybe_exit(return_code: int) -> None:
102102 sys .exit (return_code )
103103
104104 if not skip_ruff :
105- print_event (
106- click .style ("Ruff lint:" , bold = True ) + click .style (" ruff check" , dim = True )
107- )
105+ print_event ("ruff check..." , newline = False )
108106 result = subprocess .run (["ruff" , "check" , path , * ruff_args ])
109107 maybe_exit (result .returncode )
110108
111- print_event (
112- click .style ("Ruff format:" , bold = True )
113- + click .style (" ruff format --check" , dim = True )
114- )
109+ print_event ("ruff format --check..." , newline = False )
115110 result = subprocess .run (["ruff" , "format" , path , "--check" , * ruff_args ])
116111 maybe_exit (result .returncode )
117112
118113 if not skip_ty and config .get ("ty" , {}).get ("enabled" , True ):
119- print_event (click . style ( "Ty:" , bold = True ) + click . style ( " ty check" , dim = True ) )
114+ print_event (" ty check... " , newline = False )
120115 result = subprocess .run (["ty" , "check" , path ])
121116 maybe_exit (result .returncode )
122117
@@ -126,9 +121,7 @@ def maybe_exit(return_code: int) -> None:
126121 if biome .needs_update ():
127122 ctx .invoke (install )
128123
129- print_event (
130- click .style ("Biome:" , bold = True ) + click .style (" biome check" , dim = True )
131- )
124+ print_event ("biome check..." )
132125 result = biome .invoke ("check" , path )
133126 maybe_exit (result .returncode )
134127
@@ -153,32 +146,21 @@ def fix(ctx: click.Context, path: str, unsafe_fixes: bool, add_noqa: bool) -> No
153146 raise click .UsageError ("Cannot use both --unsafe-fixes and --add-noqa" )
154147
155148 if unsafe_fixes :
156- print_event (
157- click .style ("Ruff lint:" , bold = True )
158- + click .style (" ruff check --fix --unsafe-fixes" , dim = True )
159- )
149+ print_event ("ruff check --fix --unsafe-fixes..." , newline = False )
160150 result = subprocess .run (
161151 ["ruff" , "check" , path , "--fix" , "--unsafe-fixes" , * ruff_args ]
162152 )
163153 elif add_noqa :
164- print_event (
165- click .style ("Ruff lint:" , bold = True )
166- + click .style (" ruff check --add-noqa" , dim = True )
167- )
154+ print_event ("ruff check --add-noqa..." , newline = False )
168155 result = subprocess .run (["ruff" , "check" , path , "--add-noqa" , * ruff_args ])
169156 else :
170- print_event (
171- click .style ("Ruff lint:" , bold = True )
172- + click .style (" ruff check --fix" , dim = True )
173- )
157+ print_event ("ruff check --fix..." , newline = False )
174158 result = subprocess .run (["ruff" , "check" , path , "--fix" , * ruff_args ])
175159
176160 if result .returncode != 0 :
177161 sys .exit (result .returncode )
178162
179- print_event (
180- click .style ("Ruff format:" , bold = True ) + click .style (" ruff format" , dim = True )
181- )
163+ print_event ("ruff format..." , newline = False )
182164 result = subprocess .run (["ruff" , "format" , path , * ruff_args ])
183165 if result .returncode != 0 :
184166 sys .exit (result .returncode )
@@ -193,15 +175,9 @@ def fix(ctx: click.Context, path: str, unsafe_fixes: bool, add_noqa: bool) -> No
193175
194176 if unsafe_fixes :
195177 args .append ("--unsafe" )
196- print_event (
197- click .style ("Biome:" , bold = True )
198- + click .style (" biome check --write --unsafe" , dim = True )
199- )
178+ print_event ("biome check --write --unsafe..." )
200179 else :
201- print_event (
202- click .style ("Biome:" , bold = True )
203- + click .style (" biome check --write" , dim = True )
204- )
180+ print_event ("biome check --write..." )
205181
206182 result = biome .invoke (* args )
207183
0 commit comments