Closed znichollscr closed 3 weeks ago
Currently, the data is parsed into a dictionary using tomli or tomllib. Than tomli-w writes the data back.
The comments are not preserved during parsing.
I have to rework the pyproject.toml handling anyway, I can take care of it in the next days.
I could update this, so that pyproject.toml is a special case of dynamic. Would take a bit. Hopefully sunday...
I've noticed that running
pdm bump
removes any comments that are in mypyproject.toml
. That isn't the end of the world, but it might be a good thing to document. I'm happy to write a PR that adds that, I just wanted to check two questions:pyproject.toml
deliberate?