What's new
envgap now detects Pydantic BaseSettings fields, which makes it more useful for FastAPI-style projects.
It can now detect settings like:
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
database_url: str
openai_api_key: str
debug: bool = Falseand classify:
DATABASE_URL as required
OPENAI_API_KEY as required
DEBUG as optional
Also included
- Required vs optional detection for Pydantic settings fields
Field(...)andField(default=...)handlingdefault_factorysupport as optional- FastAPI/Pydantic example update
- README and changelog updates