@@ -86,7 +86,9 @@ def main(
86
86
stdout .reconfigure (errors = "backslashreplace" )
87
87
88
88
fscache = FileSystemCache ()
89
- sources , options , on_plugins_loaded = process_options (args , stdout = stdout , stderr = stderr , fscache = fscache )
89
+ sources , options , on_plugins_loaded = process_options (
90
+ args , stdout = stdout , stderr = stderr , fscache = fscache
91
+ )
90
92
if clean_exit :
91
93
options .fast_exit = False
92
94
@@ -124,7 +126,9 @@ def main(
124
126
install_types (formatter , options , non_interactive = options .non_interactive )
125
127
return
126
128
127
- res , messages , blockers = run_build (sources , options , fscache , t0 , stdout , stderr , on_plugins_loaded = on_plugins_loaded )
129
+ res , messages , blockers = run_build (
130
+ sources , options , fscache , t0 , stdout , stderr , on_plugins_loaded = on_plugins_loaded
131
+ )
128
132
129
133
if options .non_interactive :
130
134
missing_pkgs = read_types_packages_to_install (options .cache_dir , after_run = True )
@@ -182,7 +186,7 @@ def run_build(
182
186
t0 : float ,
183
187
stdout : TextIO ,
184
188
stderr : TextIO ,
185
- on_plugins_loaded : Callable [[], None ] | None = None
189
+ on_plugins_loaded : Callable [[], None ] | None = None ,
186
190
) -> tuple [build .BuildResult | None , list [str ], bool ]:
187
191
formatter = util .FancyFormatter (
188
192
stdout , stderr , options .hide_error_codes , hide_success = bool (options .output )
@@ -209,7 +213,16 @@ def flush_errors(filename: str | None, new_messages: list[str], serious: bool) -
209
213
try :
210
214
# Keep a dummy reference (res) for memory profiling afterwards, as otherwise
211
215
# the result could be freed.
212
- res = build .build (sources , options , None , flush_errors , fscache , stdout , stderr , on_plugins_loaded = on_plugins_loaded )
216
+ res = build .build (
217
+ sources ,
218
+ options ,
219
+ None ,
220
+ flush_errors ,
221
+ fscache ,
222
+ stdout ,
223
+ stderr ,
224
+ on_plugins_loaded = on_plugins_loaded ,
225
+ )
213
226
except CompileError as e :
214
227
blockers = True
215
228
if not e .use_stdout :
0 commit comments