Skip to content

Conversation

@pradishb
Copy link

When following the docs,

settings-doc generate --class src.settings.AppSettings --output-format markdown
Usage: settings-doc generate [OPTIONS]
Try 'settings-doc generate --help' for help.

Error: Invalid value for '--class' / '-c': Cannot read the settings class: No module named 'src'

Folder structure:

.
└── src/
    ├── __init__.py
    └── settings.py

settings.py

from pydantic_settings import BaseSettings


class AppSettings(BaseSettings):
  logging_level: str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant