Skip to content

Commit 3f218e1

Browse files
fix lints
1 parent 4f3ce17 commit 3f218e1

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

snakemake_interface_software_deployment_plugins/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ async def get_cache_assets(self) -> Iterable[str]: ...
350350

351351
@abstractmethod
352352
async def cache_asset(self, asset: str) -> None:
353-
"""Retrieve/create and store given asset to self.cache_path.
354-
"""
353+
"""Retrieve/create and store given asset to self.cache_path."""
355354
...
356355

357356
async def managed_cache_asset(self, asset: str) -> None:

snakemake_interface_software_deployment_plugins/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ def test_cache(self, tmp_path):
103103

104104
assert isinstance(env, CacheableEnvBase)
105105

106-
async def cache_assets():
107-
for asset in env.get_cache_assets():
106+
async def cache_assets(env):
107+
for asset in await env.get_cache_assets():
108108
await env.managed_cache_asset(asset)
109109

110-
asyncio.run(cache_assets())
110+
asyncio.run(cache_assets(env))
111111

112112
self._deploy(env, tmp_path)
113113

0 commit comments

Comments
 (0)