JOJ3-config-generator/joj3_config_generator/models/repo.py
张泊明518370910136 ab5bfc6cfe
All checks were successful
build / build (push) Successful in 2m23s
fix: find repo.toml recursively
2025-02-25 14:05:00 -05:00

21 lines
431 B
Python

from pathlib import Path
from typing import List, Optional
from pydantic import BaseModel, Field
class Files(BaseModel):
whitelist_patterns: List[str]
whitelist_file: Optional[str]
required: List[str]
immutable: List[str]
class Config(BaseModel):
path: Path = Path(".")
teaching_team: List[str]
max_size: float = Field(..., ge=0)
release_tags: List[str]
files: Files
sandbox_token: str