@@ -244,8 +244,7 @@ def __eq__(self, other) -> bool:
244244class PinnableEnvBase (ABC ):
245245 @classmethod
246246 @abstractmethod
247- def pinfile_extension (cls ) -> str :
248- ...
247+ def pinfile_extension (cls ) -> str : ...
249248
250249 @abstractmethod
251250 def pin (self ) -> None :
@@ -258,16 +257,17 @@ def pin(self) -> None:
258257 @property
259258 def pinfile (self ) -> Path :
260259 assert isinstance (self , EnvBase )
261- return (self ._pinfile_prefix / self .hash ()).with_suffix (self .pinfile_extension ())
260+ return (self ._pinfile_prefix / self .hash ()).with_suffix (
261+ self .pinfile_extension ()
262+ )
262263
263264
264265class CacheableEnvBase (ABC ):
265- async def get_cache_assets (self ) -> Iterable [str ]:
266- ...
266+ async def get_cache_assets (self ) -> Iterable [str ]: ...
267267
268268 @abstractmethod
269269 def cache_assets (self ) -> None :
270- """Determine environment assets and store any associated information or data to
270+ """Determine environment assets and store any associated information or data to
271271 self.cache_path.
272272 """
273273 ...
@@ -277,7 +277,6 @@ def cache_path(self) -> Path:
277277 assert isinstance (self , EnvBase )
278278 return self ._cache_prefix
279279
280-
281280 async def remove_cache (self ) -> None :
282281 """Remove the cached environment assets."""
283282 assert isinstance (self , EnvBase )
@@ -297,7 +296,7 @@ async def remove_cache(self) -> None:
297296
298297class DeployableEnvBase (ABC ):
299298 @abstractmethod
300- def is_deployment_path_portable (self ) -> bool :
299+ def is_deployment_path_portable (self ) -> bool :
301300 """Return whether the deployment path matters for the environment, i.e.
302301 whether the environment is portable. If this returns False, the deployment
303302 path is considered for the deployment hash. For example, conda environments are not
@@ -339,18 +338,14 @@ def managed_remove(self) -> None:
339338 try :
340339 self .remove ()
341340 except Exception as e :
342- raise WorkflowError (
343- f"Removal of { self .spec } failed: { e } "
344- )
341+ raise WorkflowError (f"Removal of { self .spec } failed: { e } " )
345342
346343 async def managed_deploy (self ) -> None :
347344 assert isinstance (self , EnvBase )
348345 try :
349346 await self .deploy ()
350347 except Exception as e :
351- raise WorkflowError (
352- f"Deployment of { self .spec } failed: { e } "
353- )
348+ raise WorkflowError (f"Deployment of { self .spec } failed: { e } " )
354349
355350 def deployment_hash (self ) -> str :
356351 assert isinstance (self , EnvBase )
0 commit comments