Releases: aphp/confit
Releases · aphp/confit
v0.5.2
Changelog
Changed
- Keys with dots (or path-like keys in general) will be escaped when serializing a config
{"section": {"deep.key": "ok"}}
will be serialized as
[section]
'deep.key' = "ok"
What's Changed
- Escape path-like keys by @percevalw in #13
Full Changelog: v0.5.1...v0.5.2
v0.5.1
Changelog
- Use context instead of func for set_seed to allow
with set_seed(42): # do stuff num = random.randint(0, 100)
- Add auto-reload plugin to work with confit wrapped functions in notebooks
Pull Requests
- Misc utils by @percevalw in #12
Full Changelog: v0.5.0...v0.5.1
v0.5.0
What's Changed
Added
deprecated
parameter to register an object under multiple names with deprecation warnings
Fixed
- Stop interpreting type errors as validation errors when executing a validated function
Pull Requests
- Parameter for deprecated names by @percevalw in #11
Full Changelog: v0.4.3...v0.5.0
v0.4.3
What's Changed
Fixed
- Save var kwargs as separate fields
Pull Requests
- Save var kwargs as separate fields by @percevalw in #10
Full Changelog: v0.4.2...v0.4.3
v0.4.2
What's Changed
Fixed
- Re-enable extra/duplicate arg errors and uniformize between pydantic v1/v2
- Add pydantic-core dependency for jsonable types during dump
Pull Requests
- v0.4.2 by @percevalw in #9
Full Changelog: v0.4.1...v0.4.2
v0.4.1
What's changed
Fixed
- Use pydantic v2 context error only if it is an exception
Full Changelog: v0.4.0...v0.4.1
v0.4.0
What's new
Added
- Improve validation errors merging and display. By default, confit related frames and exception causes
in the traceback are hidden. - Show inner-confit traceback and exception chains if
CONFIT_DEBUG
env var is true - Support for both Pydantic v2 and v1
Fixed
- If the
seed
is given a default value in CLI, it can now be used by confit when no seed is given
Pull Requests
- docs: fix language switching by @percevalw in #2
- v0.3.0 by @percevalw in #6
- Better errors by @percevalw in #7
- Pydantic v2 by @percevalw in #8
Full Changelog: v0.3.0...v0.4.0
v0.3.0
What's Changed
- Allow keyword only parameters
- Avoid import of all entry points by catalogue during failed registry lookup
- Fix bug in serialization, leading to mixed config fields
Full Changelog: v0.2.1...v0.3.0