commit | e39dbdbe383c162cfc1c384b5c6c3f6034f517a6 | [log] [tgz] |
---|---|---|
author | pinal005 <pinal.padaliya@gmail.com> | Fri Jan 05 14:23:10 2024 +0530 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Jan 05 00:58:53 2024 -0800 |
tree | 3aad5cff35eec6b6ce1903f8688ce4470313cad0 | |
parent | 4aa9fca1b309084030f5d8a116116f811e380918 [diff] |
fix: indent exist check before accessing its property (#328) GitOrigin-RevId: b963483b8ee6bf550061b96349c26dcea8775773 Change-Id: I18ce47d66c81894cbc0ef7035600628238a664a5
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