@@ -134,19 +134,12 @@ def get_binary_path(target: str, version: str = "rust") -> Path:
134134 if build_res .returncode != 0 :
135135 stderr_tail = "\n " .join (build_res .stderr .strip ().splitlines ()[- 20 :])
136136 raise RuntimeError (
137- "Failed to build target "
138- f"{ target !r} with --config={ bazel_config } .\n "
139- f"stderr (last lines):\n { stderr_tail } "
137+ f"Failed to build target { target !r} with --config={ bazel_config } .\n stderr (last lines):\n { stderr_tail } "
140138 )
141139
142- ws_info_res = subprocess .run (
143- ["bazel" , "info" , "workspace" ], capture_output = True , text = True , check = False
144- )
140+ ws_info_res = subprocess .run (["bazel" , "info" , "workspace" ], capture_output = True , text = True , check = False )
145141 if ws_info_res .returncode != 0 :
146- raise RuntimeError (
147- "Failed to resolve Bazel workspace path.\n "
148- f"stderr:\n { ws_info_res .stderr .strip ()} "
149- )
142+ raise RuntimeError (f"Failed to resolve Bazel workspace path.\n stderr:\n { ws_info_res .stderr .strip ()} " )
150143
151144 cquery_cmd = [
152145 "bazel" ,
@@ -159,8 +152,7 @@ def get_binary_path(target: str, version: str = "rust") -> Path:
159152 cquery_res = subprocess .run (cquery_cmd , capture_output = True , text = True , check = False )
160153 if cquery_res .returncode != 0 :
161154 raise RuntimeError (
162- "Failed to locate built executable with Bazel cquery.\n "
163- f"stderr:\n { cquery_res .stderr .strip ()} "
155+ f"Failed to locate built executable with Bazel cquery.\n stderr:\n { cquery_res .stderr .strip ()} "
164156 )
165157
166158 ws_path = Path (ws_info_res .stdout .strip ())
@@ -191,9 +183,7 @@ def copy_flatbuffer_daemon_configs(etc_dir: Path) -> None:
191183 f"stderr (last lines):\n { stderr_tail } "
192184 )
193185
194- ws_info_res = subprocess .run (
195- ["bazel" , "info" , "workspace" ], capture_output = True , text = True , check = False
196- )
186+ ws_info_res = subprocess .run (["bazel" , "info" , "workspace" ], capture_output = True , text = True , check = False )
197187 if ws_info_res .returncode != 0 :
198188 raise RuntimeError (
199189 "Failed to resolve Bazel workspace path while locating flatbuffer configs.\n "
@@ -286,9 +276,7 @@ def start(self, startup_timeout: float = 2.0) -> None:
286276 log_content = self .log_file .read_text () if self .log_file .exists () else "No logs available"
287277 self ._close_log_fd ()
288278 self .process = None
289- raise RuntimeError (
290- f"Launch Manager daemon failed to start. Exit code: { return_code } \n Logs:\n { log_content } "
291- )
279+ raise RuntimeError (f"Launch Manager daemon failed to start. Exit code: { return_code } \n Logs:\n { log_content } " )
292280
293281 def stop (self , shutdown_timeout : float = 5.0 ) -> None :
294282 """
0 commit comments