Skip to content

Commit

Permalink
fix: adapt to interface change
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Dec 5, 2023
1 parent e8d959f commit 6b1bee0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
snakemake-interface-common = "^1.14.2"
snakemake-interface-storage-plugins = "^2.0.0"
snakemake-interface-storage-plugins = "^3.0.0"
sysrsync = "^1.1.1"


Expand Down
14 changes: 8 additions & 6 deletions snakemake_storage_plugin_fs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path
import shutil
import subprocess
from typing import Any, Iterable, Optional
from typing import Any, Iterable, List, Optional

import sysrsync

Expand Down Expand Up @@ -41,12 +41,14 @@ def __post_init__(self):
pass

@classmethod
def example_query(cls) -> ExampleQuery:
def example_queries(cls) -> List[ExampleQuery]:
"""Return an example query with description for this storage provider."""
return ExampleQuery(
query="test/test.txt",
description="Some file or directory path.",
)
return [
ExampleQuery(
query="test/test.txt",
description="Some file or directory path.",
)
]

def rate_limiter_key(self, query: str, operation: Operation) -> Any:
"""Return a key for identifying a rate limiter given a query and an operation.
Expand Down

0 comments on commit 6b1bee0

Please sign in to comment.