refactor/main #11

Merged
李衍志523370910113 merged 23 commits from refactor/main into dev 2025-02-27 15:51:32 +08:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 723705b94f - Show all commits

View File

@ -75,6 +75,8 @@ def convert(
repo_conf.root = root
repo_conf.path = repo_toml_path.relative_to(root)

repo_conf.path as absolute

`repo_conf.path` as absolute
task_conf = task.Config(**task_obj)
task_conf.root = root

task_conf.path as absolute

`task_conf.path` as absolute
task_conf.path = task_toml_path.relative_to(root)
result_model = convert_conf(repo_conf, task_conf)
result_dict = result_model.model_dump(by_alias=True, exclude_none=True)
with result_json_path.open("w") as result_file:

View File

@ -33,7 +33,8 @@ class Release(BaseModel):
class Config(BaseModel):
path: Path = Path(".")
root: Path = Path(".")
path: Path = Path("conf.toml")
task: str # Task name (e.g., hw3 ex5)
release: Release # Release configuration
stages: List[Stage] # list of stage configurations