Repository navigation
Custom lock-file serialization - #3909
Conversation
BurntSushi
left a comment
There was a problem hiding this comment.
Nice!
I think the main question I have here is whether line breaks are inserted if there is more than one entry in the array. I think all the tests/examples currently only have one entry in these arrays, so it's hard to tell. I know line breaks can't be inserted in the inline tables themselves, but they can be inserted between the inline tables within the array. If there are no line breaks then we probably can't use this approach as the lines would get absurdly long.
I like the to_toml approach here. :)
BurntSushi
left a comment
There was a problem hiding this comment.
Still makes for very long lines, but I feel like this is an improvement on the status quo.
The other possibility is to keep the table arrays (not inline tables) and just indent them.
a292476 to
4c92a74
Compare
CodSpeed Performance ReportMerging #3909 will not alter performanceComparing Summary
|
Summary
This PR changes the lock-file format to use inline tables for wheels and source distributions, which currently use separate tables that make the file harder to follow.
The downside is that the inline-tables end up quite long and TOML doesn't support line breaks in inline tables, yet.
Part of #3611.