@@ -147,7 +147,9 @@ def _record_timeout(
147147 _logger .error ("Plugin %s timeout après %.1fs" , plugin_id , timeout_s )
148148
149149
150- def _resolve_exec_options (config : dict [str , Any ], default_sandbox : bool ) -> tuple [bool , int ]:
150+ def _resolve_exec_options (
151+ config : dict [str , Any ], default_sandbox : bool
152+ ) -> tuple [bool , int ]:
151153 try :
152154 opts = dict (config or {}).get ("options" , {}) if isinstance (config , dict ) else {}
153155 except Exception :
@@ -179,7 +181,9 @@ def _build_dependency_graph(
179181 for pid , rec in active_items .items ():
180182 for dep in rec .requires :
181183 if dep not in active_items :
182- _logger .warning ("Dépendance manquante pour %s: '%s' (ignorée)" , pid , dep )
184+ _logger .warning (
185+ "Dépendance manquante pour %s: '%s' (ignorée)" , pid , dep
186+ )
183187 continue
184188 indeg [pid ] += 1
185189 children [dep ].append (pid )
@@ -380,7 +384,9 @@ def _run_parallel_sandbox(
380384
381385def _configure_worker_env (config : dict [str , Any ]) -> None :
382386 try :
383- _opts = dict (config or {}).get ("options" , {}) if isinstance (config , dict ) else {}
387+ _opts = (
388+ dict (config or {}).get ("options" , {}) if isinstance (config , dict ) else {}
389+ )
384390 _env_nonint = os .environ .get ("PYCOMPILER_NONINTERACTIVE_PLUGINS" )
385391 _env_offscreen = os .environ .get ("PYCOMPILER_OFFSCREEN_PLUGINS" )
386392 _noninteractive = (
@@ -413,7 +419,9 @@ def _configure_worker_env(config: dict[str, Any]) -> None:
413419
414420def _maybe_init_qt_app (config : dict [str , Any ]) -> None :
415421 try :
416- _opts2 = dict (config or {}).get ("options" , {}) if isinstance (config , dict ) else {}
422+ _opts2 = (
423+ dict (config or {}).get ("options" , {}) if isinstance (config , dict ) else {}
424+ )
417425 _env_allow = os .environ .get ("PYCOMPILER_SANDBOX_DIALOGS" )
418426 _allow_dialogs = (
419427 (str (_env_allow ).strip ().lower () in ("1" , "true" , "yes" ))
@@ -480,7 +488,9 @@ def __init__(self, *args, **kwargs) -> None:
480488
481489def _apply_resource_limits (config : dict [str , Any ]) -> None :
482490 try :
483- _opts3 = dict (config or {}).get ("options" , {}) if isinstance (config , dict ) else {}
491+ _opts3 = (
492+ dict (config or {}).get ("options" , {}) if isinstance (config , dict ) else {}
493+ )
484494 _limits = _opts3 .get ("plugin_limits" , {}) if isinstance (_opts3 , dict ) else {}
485495 _mem_mb = int (_limits .get ("mem_mb" , 0 ))
486496 _cpu_s = int (_limits .get ("cpu_time_s" , 0 ))
@@ -534,7 +544,9 @@ def _load_plugin_instance(
534544 if plg is None or getattr (getattr (plg , "meta" , None ), "id" , None ) != plugin_id :
535545 try :
536546 mgr = BCASL (_Path (project_root ), config = config , sandbox = False )
537- if hasattr (module , "bcasl_register" ) and callable (getattr (module , "bcasl_register" )):
547+ if hasattr (module , "bcasl_register" ) and callable (
548+ getattr (module , "bcasl_register" )
549+ ):
538550 module .bcasl_register (mgr )
539551 rec = getattr (mgr , "_registry" , {}).get (plugin_id )
540552 if rec is None :
0 commit comments