pyupio / dparse

A parser for Python dependency files
MIT License
61 stars 23 forks source link

Keep whitespace on updates (Python dependencies) #15

Open jayfk opened 7 years ago

jayfk commented 7 years ago

Reference: https://github.com/pyupio/pyup/issues/256

rafaelpivato commented 4 years ago

If you don't have the time to go through https://github.com/pyupio/pyup/issues/256 this issue is about respecting an existing file format, like the one done by pip-compile, in a way that comments aligned to some virtual right column would stick to the same column, even when you change this:

somelibrary==1.9.2      # some comment
other==2.10.2           # some comment

...to something like this:

somelibrary==1.10.2     # some comment
other==2.10.2           # some comment

... and avoid something like this:

somelibrary==1.9.3 # some comment
other==2.10.2 # some comment