Skip to content

YAML formatting can be lost on load and dump #28

@tanaya-mankad

Description

@tanaya-mankad

Pyyaml does not preserve comments.
Ruamel.yaml does, but seems to have some issues updating pypi because of the way they package inside a namespace.
Pyyaml safe_load doesn't adhere to YAML 1.2 rules to treat 'yes', 'no', 'on', 'off' as strings (not bool) whether they are quoted or not.
safe_dump doesn't allow for list indentation that IDEs can use to guess collapsability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions