Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions snakemake_interface_report_plugins/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ def is_other(self) -> bool: ...
def id(self) -> str: ...


class MetadataRecordInterface(ABC):

@property
@abstractmethod
def parse_yte(self) -> dict: ...


class RuleRecordInterface(ABC):
@property
@abstractmethod
Expand Down
3 changes: 3 additions & 0 deletions snakemake_interface_report_plugins/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
ConfigFileRecordInterface,
JobRecordInterface,
RuleRecordInterface,
MetadataRecordInterface,
)
from snakemake_interface_report_plugins.settings import ReportSettingsBase
from snakemake_interface_report_plugins.interfaces import DAGReportInterface
Expand All @@ -27,6 +28,7 @@ def __init__(
jobs: List[JobRecordInterface],
settings: ReportSettingsBase,
workflow_description: str,
metadata: MetadataRecordInterface,
dag: DAGReportInterface,
):
self.rules = rules
Expand All @@ -35,6 +37,7 @@ def __init__(
self.configfiles = configfiles
self.settings = settings
self.workflow_description = workflow_description
self.metadata = metadata
self.dag = dag

self.__post_init__()
Expand Down