Zuehlke / ConfZ

ConfZ is a configuration management library for Python based on pydantic.
https://confz.readthedocs.io
MIT License
226 stars 10 forks source link

Fix error when missing .env file #66

Closed alex-dr closed 1 year ago

alex-dr commented 1 year ago

https://github.com/Zuehlke/ConfZ/pull/62 broke backwards compatibility for having *.env files be optional, as well as compatibility with dotenv's find_dotenv capability for searching the folder hierarchy for .env files.

This change tweaks the stream feature to restore the previous behavior for file-based env file loaders and adds a test with a nonexistent file.

silvanmelchior commented 1 year ago

Thanks a lot for the fix!

There is a small formatting error, otherwise everything looks fine to me.

alex-dr commented 1 year ago

No problem! Love the package - I had built one along very similar lines and was slowly improving it until I found ConfZ, which does everything I had wanted with an even nicer interface.

Tests should all pass now.

silvanmelchior commented 1 year ago

It's great how often people contribute to it, love the open source spirit!

silvanmelchior commented 1 year ago

I will release a new version by the end of the week, currently I'm on vacation.