Skip to content

refactor(config): use pydantic when loading config#3261

Merged
sylvlecl merged 13 commits into
devfrom
refactor/use-pydantic-when-loading-config
Jun 29, 2026
Merged

refactor(config): use pydantic when loading config#3261
sylvlecl merged 13 commits into
devfrom
refactor/use-pydantic-when-loading-config

Conversation

@olivierPigeon-RTE

Copy link
Copy Markdown
Contributor

No description provided.

@olivierPigeon-RTE olivierPigeon-RTE changed the title Refactor/use pydantic when loading config refactor(config): use pydantic when loading config Jun 17, 2026
@olivierPigeon-RTE olivierPigeon-RTE force-pushed the refactor/use-pydantic-when-loading-config branch from 5bc777a to 8760f25 Compare June 17, 2026 08:08
@olivierPigeon-RTE olivierPigeon-RTE force-pushed the refactor/use-pydantic-when-loading-config branch from bbc7b5f to be87c29 Compare June 17, 2026 17:36
sylvlecl
sylvlecl previously approved these changes Jun 29, 2026

@sylvlecl sylvlecl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ! Thanks

Comment thread antarest/core/config.py
return OutOfStudyFileOutputStorageConfig(storage_dir=storage_dir)
@model_validator(mode="after")
def _create_storage_dir(self) -> "OutOfStudyFileOutputStorageConfig":
self.storage_dir.mkdir(parents=True, exist_ok=True)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be created by the storage when it's created, not just when we read the config.
But not related to that PR

sylvlecl added 2 commits June 29, 2026 16:30
Signed-off-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com>
@sylvlecl sylvlecl merged commit f95bf82 into dev Jun 29, 2026
14 of 15 checks passed
@sylvlecl sylvlecl deleted the refactor/use-pydantic-when-loading-config branch June 29, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants