Skip to content

Releases: aphp/confit

v0.7.4

15 Jan 09:11
Compare
Choose a tag to compare

Changelog

  • Allow larger than 4096 bytes config files
  • Escape tabs and newline when serializing to a config file
  • Fix an infinite loop that occured when resolving a reference to a field with a null value

Pull Requests

  • Fix/issue 26 : YAML Parsing for Large Config Files by @LucasDedieu in #28
  • Fix: escape tabs and newline when serializing to a config file by @percevalw in #29
  • Support reference to fields with null values by @percevalw in #30
  • chore: bump version to 0.7.4 by @percevalw in #31

New Contributors

Full Changelog: v0.7.3...v0.7.4

v0.7.3

12 Dec 13:19
Compare
Choose a tag to compare

Changelog

  • Support interpolated seed in the config file (as a reminder, the seed is treated specifically by confit to initialize random generators before any object is resolved)
  • Support if/else expressions in interpolation, and only resolve the relevant branch

Pull Requests

Full Changelog: v0.7.2...v0.7.3

v0.7.2

28 Nov 15:24
Compare
Choose a tag to compare

Changelog

  • Seed the program BEFORE the config file is resolved and components have been instantiated, to ensure reproducibility.

Pull Request

Full Changelog: v0.7.1...v0.7.2

v0.7.1

21 Nov 11:19
Compare
Choose a tag to compare

Changelog

  • Force utf-8 encoding when writing a config file (ini or yaml)

Pull Requests

Full Changelog: v0.7.0...v0.7.1

v0.7.0

22 Oct 18:23
Compare
Choose a tag to compare

Changelog

Changed

  • Aborting a script will now show the traceback

Fixed

  • Confit should no longer cause pydantic v1 deprecation warnings

Pull Requests

Full Changelog: v0.6.0...v0.7.0

v0.6.0

13 Sep 13:50
02a1178
Compare
Choose a tag to compare

Changelog

Fixed

  • Support IPython autoreload on confit wrapped functions
  • Support using config files with scripts without a dedicated section header
  • Disable configparser interpolation (% symbol)
  • Better support for escaped strings in config files
  • Various registry-related fixes

Added

  • Non-relevant fields (outside the script dedicated section) are no longer instantiated when running a script with a config file
  • We now support loading and serializing configs in yaml syntax (Confit.from_yaml_str, Confit.to_yaml_str, Confit.from_disk("___.yaml") and Confit.to_disk("___.yaml"))

Pull Requests

Full Changelog: v0.5.6...v0.6.0

v0.5.6

31 Jan 16:18
Compare
Choose a tag to compare

No change from v0.5.5.
Package is now distributed as source and wheel.

Full Changelog: v0.5.5...v0.5.6

v0.5.5

24 Nov 18:36
Compare
Choose a tag to compare

Changelog

Added

  • Support fixing the path of validation errors raised inside a "validate" function (see the AsList meta type in the tests)

Pull Requests

  • Support fixing path of nested validation errors inside a method by @percevalw in #16

Full Changelog: v0.5.4...v0.5.5

v0.5.4

24 Nov 14:38
Compare
Choose a tag to compare

Changelog

Fixed

  • We now forward function signature when accessing a callable via a deprecated registry name.
    This is useful when registry.get("deprecated-name") is inspected.

Pull Requests

Full Changelog: v0.5.3...v0.5.4

v0.5.3

03 Nov 20:04
Compare
Choose a tag to compare

Changelog

Changed

  • We now raise an error if a value in the config cannot be deserialized as a JSON object but contains characters that hint at a JSON object (e.g. quotes, brackets, etc.). This changes the old behavior where we would silently ignore the value and keep the string as is.

Fixed

  • Allow complex interpolations like ${[*section."key.with.dot", "baz"]}

Pull Requests

Full Changelog: v0.5.2...v0.5.3