Skip to content

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

@asottile

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='')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions