@@ -271,13 +271,20 @@ def _write_nodes(path: Path, obo: Obo, prefix: str) -> None:
271271
272272
273273def _make_safe (
274- cls : type [Obo ], * , do_convert : bool = False , no_force : bool = False , loud : bool = False , versions : dict [str , str ]
274+ cls : type [Obo ],
275+ * ,
276+ do_convert : bool = False ,
277+ no_force : bool = False ,
278+ loud : bool = False ,
279+ versions : dict [str , str ],
275280) -> tuple [str , dict , bool ]:
276281 prefix = cls .ontology
277282 secho (prefix , fg = "green" , bold = True )
278283 with logging_redirect_tqdm ():
279284 try :
280- rv , errored = _make (cls , do_convert = do_convert , no_force = no_force , loud = loud , versions = versions )
285+ rv , errored = _make (
286+ cls , do_convert = do_convert , no_force = no_force , loud = loud , versions = versions
287+ )
281288 except Exception as e :
282289 secho (f"[{ prefix } ] got exception in _make: { e } " , fg = "red" )
283290 traceback .print_exc ()
@@ -287,7 +294,12 @@ def _make_safe(
287294
288295
289296def _make ( # noqa:C901
290- module : type [Obo ], * , do_convert : bool = False , no_force : bool = False , loud : bool = True , versions : dict [str , str ]
297+ module : type [Obo ],
298+ * ,
299+ do_convert : bool = False ,
300+ no_force : bool = False ,
301+ loud : bool = True ,
302+ versions : dict [str , str ],
291303) -> tuple [dict , bool ]:
292304 prefix = module .ontology
293305 errored = False
@@ -572,7 +584,14 @@ def _get_ols_config(prefix: str, ontology_purl: str) -> dict[str, Any]:
572584@click .option ("--skip" , help = "Skip a specific ontology" , multiple = True )
573585@click .option ("--force/--no-force" )
574586@click .option ("--loud" , is_flag = True )
575- def main (minimum : str | None , xvalue : list [str ], no_convert : bool , force : bool , loud : bool , skip : list [str ]): # noqa:C901
587+ def main ( # noqa:C901
588+ minimum : str | None ,
589+ xvalue : list [str ],
590+ no_convert : bool ,
591+ force : bool ,
592+ loud : bool ,
593+ skip : list [str ],
594+ ) -> None :
576595 """Build the PyOBO examples."""
577596 if xvalue :
578597 for prefix in xvalue :
@@ -644,8 +663,8 @@ def main(minimum: str | None, xvalue: list[str], no_convert: bool, force: bool,
644663 rv ["resources" ][prefix ] = result
645664 if errored :
646665 rv ["errors" ][prefix ] = True
647- elif prefix in rv [' errors' ]:
648- del rv [' errors' ][prefix ]
666+ elif prefix in rv [" errors" ]:
667+ del rv [" errors" ][prefix ]
649668
650669 MANIFEST_PATH .write_text (yaml .safe_dump (rv ))
651670
0 commit comments