Comments for pyproject.toml
dependencies get shifted unexpectedly
#12333
Labels
pyproject.toml
dependencies get shifted unexpectedly
#12333
Summary
Hi there,
I encountered an behaviour where comments for
pyproject.toml
dependencies gets shifted unexpectedly.Minimal Reproducible Example
Given an initial
pyproject.toml
file:Upon running
uv add pydantic
(note howpydantic
would be inserted right underjedi
and the comment), I expect to get:Instead, comment associated with
jedi
has shifted to the line withpydantic
:Notes
In my testing, the bug occurs only when:
Contributing Back
uv
is an amazing project, and I'd love to contribute back to it.I have some Rust experience, but I'm not familiar with the repo structure. If you can so kindly point me to the relevant section/crate in the repo, I'm happy to help resolve this bug 😊
Platform
Darwin 24.3.0 arm64
Version
uv 0.6.8 (c1ef482 2025-03-18)
Python version
Python 3.12.2
The text was updated successfully, but these errors were encountered: