commit | b5ce680ba5d013ba026d4039d4fbd2343367cff6 | [log] [tgz] |
---|---|---|
author | Frost Ming <mianghong@gmail.com> | Tue Apr 05 22:24:06 2022 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 25 14:01:12 2023 -0700 |
tree | b20ccbf91feba5b9b022117e6af424d9ceffdceb | |
parent | 6ac1810678a538195e0d1d17acb941e4ef08e794 [diff] |
update pre-commit hooks GitOrigin-RevId: 46a738d84704ddad64c13723ae3fe7c6dd32872e Change-Id: I13d9d49699e1ff2beac9d16e06b759382126c277
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