JOJ3-config-generator/joj3_config_generator/models/repo.py
张泊明518370910136 4c12bf9a34
Some checks failed
build / build (push) Has been cancelled
fix: store root path
2025-02-27 01:14:40 -05:00

22 lines
466 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):
root: Path = Path(".")
path: Path = Path("repo.toml")
teaching_team: List[str]
max_size: float = Field(..., ge=0)
release_tags: List[str]
files: Files
sandbox_token: str