-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
yamlfix breaks volumes: ["/a:/b"] by removing the quoting, making the list item a mapping.
It looks like this is a ruyaml bug as this happens in
yamlfix/src/yamlfix/adapters.py
Line 382 in 47039c9
| self.yaml.dump(source_dict, string_stream) |
Steps to reproduce
❯ yamlfix - <<<'volumes: ["/a:/b"]'
[+] YamlFix: Fixing files
[+] Fixed <stdin>
---
volumes: [/a:/b]
Current behavior
yamlfix breaks volumes: ["/a:/b"] by removing the quoting, making the list item a mapping.
Desired behavior
Don't break the yaml on formatting
Environment
yamlfix: 1.16.0
Python: 3.10.12
Platform: Linux-6.5.0-1018-oem-x86_64-with-glibc2.35
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working