chore(ci): make quality checks pass across repo

- fix ruff violations in dataset, recording, and value modules

- fix typos findings and markdown/workflow lint issues

- update pages workflow checkout to disable credential persistence

- apply pre-commit auto-formatting and EOF normalization

- include requested repo housekeeping updates (.gitignore and README)
这个提交包含在:
Elvin
2026-03-04 11:02:06 +08:00
父节点 8b6a85cf0f
当前提交 c96c678772
共有 26 个文件被更改,包括 143 次插入 和 115 次删除

查看文件

@ -41,7 +41,9 @@ class ValueTargetsConfig:
if self.c_fail_coef < 0:
raise ValueError("'targets.c_fail_coef' must be non-negative.")
if not self.target_field.startswith("observation."):
raise ValueError("'targets.target_field' must start with 'observation.' to survive processor conversion.")
raise ValueError(
"'targets.target_field' must start with 'observation.' to survive processor conversion."
)
@dataclass
@ -113,7 +115,7 @@ class ValueTrainPipelineConfig(HubMixin):
self.targets.validate()
if hasattr(self.value, "target_key"):
setattr(self.value, "target_key", self.targets.target_field)
self.value.target_key = self.targets.target_field
if not self.job_name:
self.job_name = f"{self.value.type}_value"
@ -136,7 +138,9 @@ class ValueTrainPipelineConfig(HubMixin):
self.scheduler = self.value.get_scheduler_preset()
if self.value.push_to_hub and not self.value.repo_id:
raise ValueError("'value.repo_id' argument missing. Please specify it to push the model to the hub.")
raise ValueError(
"'value.repo_id' argument missing. Please specify it to push the model to the hub."
)
@classmethod
def __get_path_fields__(cls) -> list[str]: