Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add __all__ to unstable modules #402

Merged
merged 4 commits into from
Dec 3, 2024
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: 3 additions & 0 deletions cognite/extractorutils/unstable/configuration/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
from cognite.extractorutils.unstable.configuration.exceptions import InvalidConfigError
from cognite.extractorutils.unstable.configuration.models import ConfigModel

__all__ = ["ConfigFormat", "load_file", "load_from_cdf", "load_io", "load_dict"]


_T = TypeVar("_T", bound=ConfigModel)


Expand Down
15 changes: 15 additions & 0 deletions cognite/extractorutils/unstable/configuration/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
from cognite.extractorutils.configtools._util import _load_certificate_data
from cognite.extractorutils.exceptions import InvalidConfigError

__all__ = [
"ConfigModel",
"AuthenticationConfig",
"TimeIntervalConfig",
"ConnectionConfig",
"CronConfig",
"IntervalConfig",
"ScheduleConfig",
"LogLevel",
"LogFileHandlerConfig",
"LogConsoleHandlerConfig",
"LogHandlerConfig",
"ExtractorConfig",
]


class ConfigModel(BaseModel):
model_config = ConfigDict(
Expand Down
31 changes: 0 additions & 31 deletions cognite/extractorutils/unstable/core/__main__.py

This file was deleted.

2 changes: 2 additions & 0 deletions cognite/extractorutils/unstable/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
from cognite.extractorutils.unstable.scheduling import TaskScheduler
from cognite.extractorutils.util import now

__all__ = ["ConfigType", "ConfigRevision", "Extractor"]

ConfigType = TypeVar("ConfigType", bound=ExtractorConfig)
ConfigRevision = Union[Literal["local"], int]

Expand Down
2 changes: 2 additions & 0 deletions cognite/extractorutils/unstable/core/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
if typing.TYPE_CHECKING:
from .base import Extractor

__all__ = ["Error", "ErrorLevel"]


class ErrorLevel(Enum):
warning = "warning"
Expand Down
2 changes: 2 additions & 0 deletions cognite/extractorutils/unstable/core/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
from ._messaging import RuntimeMessage
from .base import ConfigRevision, ConfigType, Extractor, FullConfig

__all__ = ["Runtime", "ExtractorType"]

ExtractorType = TypeVar("ExtractorType", bound=Extractor)


Expand Down
2 changes: 2 additions & 0 deletions cognite/extractorutils/unstable/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from cognite.extractorutils.unstable.configuration.models import ScheduleConfig

__all__ = ["ScheduledTask", "ContinuousTask", "StartupTask", "Task"]


@dataclass
class _Task(ABC):
Expand Down
Loading