uv/crates/uv-workspace
liam 79bfa2b4cd
Preserve end-of-line comment whitespace when editing `pyproject.toml` (#16734)
Resolves https://github.com/astral-sh/uv/issues/16719

`uv add` collapses multiple spaces before inline comments in
`[project.dependencies]`, causing unrelated diffs and moving comments
onto the wrong columns. This diff captures the exact whitespace padding
that preceded each end-of-line comment when parsing the array and reuses
it when formatting.

---------

Co-authored-by: konstin <konstin@mailbox.org>
2025-11-20 20:15:27 +01:00
..
src Preserve end-of-line comment whitespace when editing `pyproject.toml` (#16734) 2025-11-20 20:15:27 +01:00
Cargo.toml Use workspace dependencies for crate dev-dependencies (#14903) 2025-07-25 13:57:49 -05:00