Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion ccflow/publishers/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import narwhals.stable.v1 as nw
import pandas as pd
import yaml
from cloudpathlib import AnyPath
from pydantic import Field, field_validator
from typing_extensions import override
Expand Down Expand Up @@ -91,6 +90,8 @@ class YAMLPublisher(BasePublisher):

@override
def __call__(self) -> AnyPath:
import yaml

return GenericFilePublisher(
name=self.name,
name_params=self.name_params,
Expand Down
3 changes: 2 additions & 1 deletion ccflow/publishers/print.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging
from typing import Any, Generic, Literal

import yaml
from pydantic import Field, field_validator
from typing_extensions import override

Expand Down Expand Up @@ -77,6 +76,8 @@ class PrintYAMLPublisher(BasePublisher):

@override
def __call__(self) -> Any:
import yaml

print(yaml.dump(self.data, **self.kwargs))
return self.data

Expand Down
Loading