JOJ3-config-generator/joj3_config_generator/models/repo.py
张泊明518370910136 8bf0f7cfff
All checks were successful
build / build (push) Successful in 1m3s
feat: LLM generated convert function
2024-10-20 04:46:41 -04:00

19 lines
379 B
Python

from typing import Optional
from pydantic import BaseModel, Field
class RepoFiles(BaseModel):
whitelist_patterns: list[str]
whitelist_file: Optional[str]
required: list[str]
immutable: list[str]
class Repo(BaseModel):
teaching_team: list[str]
max_size: float = Field(..., ge=0)
release_tags: list[str]
files: RepoFiles
sandbox_token: str