Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Sep 27, 2023
1 parent 1a5d518 commit a5260e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions snakemake_interface_storage_plugins/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
re.VERBOSE,
)


def get_constant_prefix(pattern: str):
first_wildcard = WILDCARD_REGEX.search(pattern)
if first_wildcard:
Expand Down
10 changes: 6 additions & 4 deletions snakemake_interface_storage_plugins/storage_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from snakemake_interface_common.exceptions import WorkflowError
from snakemake_interface_common.logging import get_logger

from snakemake_interface_storage_plugins.io import IOCacheStorageInterface, Mtime
from snakemake_interface_storage_plugins.io import IOCacheStorageInterface
from snakemake_interface_storage_plugins.storage_provider import StorageProviderBase


Expand Down Expand Up @@ -68,7 +68,7 @@ def __init__(
self.provider = provider
self.__post_init__()

def __post_init__(self):
def __post_init__(self): # noqa B027
pass

def is_valid_query(self) -> bool:
Expand Down Expand Up @@ -134,7 +134,9 @@ def managed_retrieve(self):
shutil.rmtree(local_path)
else:
os.remove(local_path)
raise WorkflowError(f"Failed to retrieve storage object from {self.query}", e)
raise WorkflowError(
f"Failed to retrieve storage object from {self.query}", e
)


class StorageObjectWrite(StorageObjectBase):
Expand All @@ -159,4 +161,4 @@ def list_candidate_matches(self) -> Iterable[str]:
"""Return a list of candidate matches in the storage for the query."""
# This is used by glob_wildcards() to find matches for wildcards in the query.
# The method has to return concretized queries without any remaining wildcards.
...
...
2 changes: 1 addition & 1 deletion snakemake_interface_storage_plugins/storage_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(
self.is_default = is_default
self.__post_init__()

def __post_init__(self):
def __post_init__(self): # noqa B027
pass

@classmethod
Expand Down

0 comments on commit a5260e6

Please sign in to comment.