Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilize Pydantic Model for Config Loading #64

Open
IbraAoad opened this issue Nov 28, 2023 · 0 comments
Open

Utilize Pydantic Model for Config Loading #64

IbraAoad opened this issue Nov 28, 2023 · 0 comments

Comments

@IbraAoad
Copy link
Contributor

Enhancement Proposal

Current Implementation

Currently, the config loading mechanism relies on a custom class (Config) and manual parsing of a YAML file.

Suggested Enhancement

The suggestion is to explore using a Pydantic model for loading and managing the configuration. Pydantic provides static typing and validation, which can enhance code clarity, maintainability, and reduce the likelihood of runtime errors.

Originally posted by @sed-i in #63 (comment)

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

No branches or pull requests

1 participant