commit | 8db45a8e39b93272abdd18eaa48ac91361f1b310 | [log] [tgz] |
---|---|---|
author | Frost Ming <mianghong@gmail.com> | Mon Aug 08 07:49:50 2022 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 25 14:02:33 2023 -0700 |
tree | 47a1895b2ca7b2f9d33b7068a8d7fa289faf3a53 | |
parent | 0ab4ecd04ebe09d03b4abf06afaca6b5733918e4 [diff] |
fix: multiline array format broken when deleting the last item (#218) GitOrigin-RevId: ad7dfe0c96b509f0508cdd8469a33dca3797a7d3 Change-Id: Ic5f1b9c9f6b8ef4c11492ebe6c81a1498b0ae2b5
TOML Kit is a 1.0.0-compliant TOML library.
It includes a parser that preserves all comments, indentations, whitespace and internal element ordering, and makes them accessible and editable via an intuitive API.
You can also create new TOML documents from scratch using the provided helpers.
Part of the implementation has been adapted, improved and fixed from Molten.
See the documentation for more information.
If you are using Poetry, add tomlkit
to your pyproject.toml
file by using:
poetry add tomlkit
If not, you can use pip
:
pip install tomlkit
Please clone the repo with submodules with the following command git clone --recurse-submodules https://github.com/sdispater/tomlkit.git
. We need the submodule - toml-test
for running the tests.
You can run the tests with poetry run pytest -q tests