Skip to content

autoupdate is awesome except it gobbles comments and reformats lists :/ #210

Closed

Description

@asottile

This seems promising: https://pypi.python.org/pypi/ruamel.yaml/0.6

Here's their example:

code = ruamel.yaml.load(inp, ruamel.yaml.RoundTripLoader)
code['name']['given'] = 'Bob'
print(ruamel.yaml.dump(code, Dumper= ruamel.yaml.RoundTripDumper), end='')

Activity

  1. added a commit that references this issue on Mar 18, 2015
    f243e93
  2. Lucas-C commented on Nov 3, 2015

    @Lucas-C
    Contributor

    +1 I've been bitten by this too :)

  3. added a commit that references this issue on Feb 8, 2016
    176371b
  4. added 3 commits that reference this issue on Feb 21, 2016
    b2c9ca9
    655333b
    14de344
  5. added a commit that references this issue on Apr 11, 2016
    08b1b3b
  6. added a commit that references this issue on May 1, 2016
    de33fad
  7. added 5 commits that reference this issue on Sep 28, 2016
    1df5815
    fcd0355
    3fbc479
    7acd75d
    ebaf7da
  8. elaichi commented on Apr 10, 2017

    @elaichi

    +1

  9. asottile commented on Aug 11, 2017

    @asottile
    MemberAuthor

    I'll likely merge #583 and call this "done" for now -- it uses some guesswork to replace sha lines intelligently while maintaining original formatting.

    A different configuration language that actually roundtrips is really necessary to solve this in all cases.

  10. asottile commented on Aug 11, 2017

    @asottile
    MemberAuthor

    via #583 -- available in 0.16.3

  11. added a commit that references this issue on Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions