Skip to content

Conversation

@jag-k
Copy link
Owner

@jag-k jag-k commented Nov 27, 2024

Closes #11

These changes will break previous configurations!

    - Updated .env.example and docs to include detailed examples.
    - Enhanced dotenv and markdown generators to support field examples.
    - Added and refined examples in Settings configuration.
    - Simplified .gitignore by removing redundant entries.
    - Update environment variable prefixes across the project.
    - Introduce a new abstract generator config model.
    - Replace individual generator settings with a unified Generators model.
    - Adjust cli.py to use AbstractGenerator.ALL_GENERATORS.
    - Modify paths and file generation logic in dotenv and Markdown generators.
    - Refactor settings logic to include nested settings and delimiter corrections.
    - Replace all instances of `Settings` with `PSESettings` in exporter.py, generators, models.py, cli.py, and settings.py.
    - Update import statements and type aliases accordingly.
    - Adjust pyproject.toml to reflect changes.
    - Revise README with updated usage examples and configuration instructions.
    - Standardized environment variable prefixes for generator settings.
    - Renamed configuration fields for dotenv and markdown generators from `path` to `name`.
    - Updated `AbstractGenerator` and `MarkdownGenerator` classes with new `name` values.
    - Removed unused `warnings` import and refactored `TypeAdapter` serialization in models.py.
    - Moved `warnings` import to settings.py and added deprecation warning for generator configuration.
    - Updated documentation in `Configuration.md` and `pyproject.toml` to reflect changes.
@jag-k jag-k requested a review from Copilot November 27, 2024 16:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 6 out of 13 changed files in this pull request and generated no suggestions.

Files not reviewed (7)
  • .env.example: Language not supported
  • README.md: Evaluated as low risk
  • docs/Configuration.md: Evaluated as low risk
  • pydantic_settings_export/cli.py: Evaluated as low risk
  • pydantic_settings_export/exporter.py: Evaluated as low risk
  • pydantic_settings_export/generators/init.py: Evaluated as low risk
  • pydantic_settings_export/generators/abstract.py: Evaluated as low risk

@jag-k jag-k self-assigned this Nov 27, 2024
@jag-k jag-k added this to the v0.4.0 milestone Nov 27, 2024
@jag-k jag-k merged commit bc23d83 into main Nov 27, 2024
3 checks passed
@jag-k jag-k deleted the bug/11-support-submodel branch November 27, 2024 16:40
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.

Add support of SubModel instead of SubSettings

2 participants