commit | d6bf411738416506709bc316135cf298ba4d57b7 | [log] [tgz] |
---|---|---|
author | Frost Ming <mianghong@gmail.com> | Wed Aug 10 08:22:43 2022 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 25 14:02:51 2023 -0700 |
tree | 1213abbbb0f0992506ce336e1051c9a5d904ec28 | |
parent | 5910e3d1573c0fc05e68cb3ab9b2f631e6dc0c7b [diff] |
fix: fix a regression of adding comment only line to an array Fix #223 GitOrigin-RevId: 97487d2b91b736a425499c7382a635539d910828 Change-Id: I4d476442d33a673f29b5c04ff06dbc7e8ae90e14
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