You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can try migrating to tomli (which is being proposed to be included in the standard library, see PEP 680), which is minimalistic and does not support dumps. tomlkit does support dumps and preserve styles and is 1.0.0 compliant. As we don't really care about performance for toml at this time, we may as well just use tomlkit for both.
We support toml as params file. There are a few issues with our current toml parsing:
tomllibrary, which is not toml 1.0 standard compatible. Also, the library is not being actively maintained.tomldumping does not preserve existing formatting.We can try migrating to
tomli(which is being proposed to be included in the standard library, see PEP 680), which is minimalistic and does not supportdumps.tomlkitdoes support dumps and preserve styles and is 1.0.0 compliant. As we don't really care about performance for toml at this time, we may as well just usetomlkitfor both.TOML support in dvc was introduced in #4258.