Skip to content

chore(deps): update dependency tomlkit to v0.15.3 - #642

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/tomlkit-0.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/tomlkit-0.x

Conversation

@renovate

@renovate renovate Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Description

Renovate proposes this dependency update under the family preset. The table below lists each package and its version change, and the release notes follow.

Pre-Merge Verification Checklist

The bot ticks nothing; CI runs the repository's required gate on this pull request; items no check decides (3D tests among them) still need a reviewer's look.

  • Local verification passed: make verify-all
  • No new HISS / NASA Power-of-10 infractions (all new/modified functions
    $\le 60$ LOC)
  • 3D Tests included (Positive, Negative, Boundary) for public APIs
  • Agent contexts in sync: standardsctl compile-context --verify
  • Commit messages adhere to Conventional Commits format

This PR contains the following updates:

Package Change Age Confidence
tomlkit (changelog) ==0.15.2 → ==0.15.3 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

python-poetry/tomlkit (tomlkit)

v0.15.3

Compare Source

Changed
  • Speed up looking up and replacing keys in tables: string lookups no longer build a temporary key, and replacing an existing value no longer scans every key in the table, which made updating many keys of a large table quadratic. (#​704)
  • Speed up repeated array appends by keeping existing indexes instead of rebuilding them. (#​666)
  • Speed up creating string values and keys, e.g. when building a document from Python data and dumping it: strings are escaped in one pass instead of per character, and the escape and bare-key character sets are built once. (#​709)
  • comment(), Item.comment() and Array.add_line(..., comment=...) now raise ValueError for control characters that TOML forbids in comments (anything but tab, plus DEL), including a bare carriage return; comment() still accepts LF and CRLF line breaks. Previously such comments were written out and produced a document that could not be parsed back. (#​705)
  • date() now raises ValueError when given a datetime string such as "1979-05-13T12:34:56" instead of returning a datetime. (#​673)
  • Array.sort() now reorders the serialized values too, keeping the array's formatting and comments in place; previously list.sort() only reordered the Python list, so dumps() still wrote the old order. (#​644)
Fixed
  • dumps(..., sort_keys=True) now sorts the keys of a parsed document recursively, matching the behavior on a plain dict; previously only the top-level keys were sorted while nested tables, inline tables, arrays of tables and inline tables inside an array kept their original order. (#​614)
  • Allow Table.setdefault() and InlineTable.setdefault() to retrieve existing values without supplying a default, matching document and mapping behavior. (#​710)
  • Fix item() and dumps() writing a datetime whose UTC offset is not a whole number of minutes (e.g. the historical LMT offsets zoneinfo gives, such as -00:44:30) as invalid TOML like 1900-01-01T12:00:00Z:30, which no parser accepts. Such a value is now written as the same instant in UTC; this also covers DateTime.replace() and astimezone(). (#​701)
  • Allow DateTime.astimezone() to use the local timezone when no timezone argument is supplied, matching datetime.datetime. (#​651)
  • Arithmetic and replace() results for Integer, Float, String, DateTime, Date and Time no longer share the original item's Trivia, so changing the result's comment or indentation no longer rewrites the item still stored in the document. (#​683)
  • Fix round() on a Float without ndigits returning a Float (e.g. 2.0) instead of an Integer, matching round() on a plain float. (#​695)
  • Fix a regression in 0.15.1 where string(..., multiline=True, escape=False) added an extra newline to a value starting with a newline, making it impossible to write such a raw string verbatim; with escape=False the value is now used as given again. (#​655)
  • Preserve single-line literal quotes when replacing a table field with a plain string, falling back to basic quoting when the value requires escaping. (#​325)
  • Fix invalid output after deleting the last key under a dotted key inside an inline table; the emptied table now renders as b = {}. (#​664)
  • Fix valid TOML being rejected as a duplicate when an out-of-order table header extends a table built from several dotted keys, e.g. [a] with b.c = 1 and b.d = 2, then [a.b.e] after another table. (#​632)
  • Fix an AttributeError when a table is defined out of order under an indented header nested four or more levels deep, e.g. [a.b.c.d] then [a.b.c]. (#​663)
  • Fix an out-of-order table being moved when it is separated from its sibling by an array of tables (e.g. [tool.poetry], [[plugins]], [tool.other]), so the document no longer round-trips unchanged. (#​702)
  • Fix update() on an out-of-order table dropping sibling keys stored in its other fragments when one of the updated keys appears in a later fragment. (#​675)
  • Fix deleting, popping or replacing a key that was newly added to an out-of-order table. (#​699)
  • Fix TOMLDocument.value and comparisons keeping only the last fragment of an array of tables split by other tables; all entries are now included, matching unwrap(). (#​697)
  • Fix assigning plain dicts to a slice of an array of tables (e.g. doc["a"][:1] = [{"x": 4}]) producing invalid output and leaving unwrap() and json.dumps() out of sync; an extended slice of the wrong length now raises before changing the document. (#​631)
  • Assigning a value that is not a table to an item or slice of an array of tables now raises ValueError before changing the document. (#​712)
  • Fix a RecursionError when parsing a dotted key at the maximum nesting depth followed by another key under the same prefix; Container, Table and InlineTable now implement __deepcopy__, and errors while assembling tables are reported as ParseError. (#​714)
  • Custom encoders registered with register_encoder() now receive only the _parent and _sort_keys keyword arguments they declare (or both when they accept **kwargs); previously an encoder declaring _parent but not _sort_keys failed with TypeError, and one declaring only _sort_keys never received it. (#​698)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate
renovate Bot requested a review from lusoris as a code owner November 27, 2026 09:48
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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.

0 participants