We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug It seems that the keyword argument sort_keys=True/False in PYYaml parser is ignored and the order is not preserved:
To Reproduce
[31]: d = load("/tmp/test.yaml") In [32]: d Out[32]: {'x': 2, 'y': ['1'], 'a': 'test'}
In [35]: dump(d, "/tmp/test2.yaml", sort_keys=False) In [36]: !cat /tmp/test2.yaml a: test x: 2 y: - '1'
Expected behavior
sort_keys=False should not sort alphanumeric
Additional context python-anyconfig==0.14.0
Most probably you need to add the "sort_keys" : https://github.com/ssato/python-anyconfig/blob/next/src/anyconfig/backend/yaml/pyyaml.py#L230
Could you please add this yaml option and release a new version?
Thank you for this great library!
The text was updated successfully, but these errors were encountered:
ssato
No branches or pull requests
Describe the bug
It seems that the keyword argument sort_keys=True/False in PYYaml parser is ignored and the order is not preserved:
To Reproduce
Expected behavior
sort_keys=False should not sort alphanumeric
Additional context
python-anyconfig==0.14.0
Most probably you need to add the "sort_keys" : https://github.com/ssato/python-anyconfig/blob/next/src/anyconfig/backend/yaml/pyyaml.py#L230
Could you please add this yaml option and release a new version?
Thank you for this great library!
The text was updated successfully, but these errors were encountered: