Adds YAML-based project configuration loader

Introduces a function to load and parse project configurations from a YAML file, returning a typed object for improved usability and type safety.
This commit is contained in:
2025-04-26 13:52:04 +02:00
parent 8b735c0d97
commit defd2345b1
4 changed files with 107 additions and 0 deletions

14
src/config.py Normal file
View File

@@ -0,0 +1,14 @@
from pydantic import BaseModel
class DirectoryConfig(BaseModel):
dependency: str = ".hdlbuild_deps"
build: str = ".working"
report: str = "reports"
copy_target: str = "output"
DIRECTORIES = DirectoryConfig()
class GitConfig(BaseModel):
timeout: int = 10
GIT = GitConfig()