Open
Conversation
``` PYTHONPATH=. pydantic-settings-export ```
Author
|
The last commit includes a pre-commit hook for demonstration - probably revert, because: It uses the bash -> it might only work for Linux users. The package's hook does not work because the package is not installed and the module therefore cannot be found. To overcome this I guess you have to use some package manager like uv. Adds .env in the model_config to avoid pydantic-validation errors on export. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds configuration documentation generated by
pydantic-settings-export.Changes made:
pydantic-settings-exportto therequirements.txt- had to update pydantic-settings to make it work and also requires apyproject.tomlto customize the (markdown-)generatorconfig.pyto make it work (model config, password validator, pre-commit formatting)CONFIGURATION.mdmanually via:Tested via pytest, under python 3.12 and installed postgresql-libs (for py_config).
However, please check if the added packages also work for you.
Caveat: as the PROJECT_ROOT is a full path and would contain the developer's patch, I didn't add a pre-commit (yet).
Issue #53
Feel free to update or change the PR.