"""Centralized settings loaded from environment with WV_ prefix."""

from typing import Optional

from pydantic import Field
from pydantic_settings import BaseSettings, SettingsConfigDict


class FilareSettings(BaseSettings):
    graphviz_engine: Optional[str] = Field(
        default=None, validation_alias="WV_GRAPHVIZ_ENGINE"
    )  # e.g., dot, neato
    debug: bool = False

    model_config = SettingsConfigDict(env_prefix="WV_", case_sensitive=False)


settings = FilareSettings()
