You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @sid-maddy thanks for taking the time to open an issue, I reproduced the bug myself but after a quick look I haven't found a quick way to fix this issue as ruyaml doesn't allow us to set which character to use when quoting.
You can try with the next test (to be added to tests/unit/test_adapter_yaml.py):
@lyz-code maybe remove the config until the feature is fixed? I just ran into this today and it would have saved me time if the option simply wasn't available and/or it was documented that this is a known gap.
Description
Even with
quote_representation = '"'
set in the config file,yamlfix
quotes already double-quoted values with single quotes.Steps to reproduce
.yamlfix.toml
file_with_double_quoted_integer_value.yaml
Current behavior
yamlfix
quotes theport
value with single quotes.file_with_double_quoted_integer_value.yaml
FWIW, with
quote_basic_values = true
also set in the config file, it exhibits the desired behaviour.Desired behaviour
yamlfix
keeps theport
value quoted with double quotes (even without settingquote_basic_values = true
.)Environment
The text was updated successfully, but these errors were encountered: