Skip to content
New issue

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

how to avoid change the style of multi level list? #291

Open
peczenyj opened this issue Dec 2, 2024 · 0 comments
Open

how to avoid change the style of multi level list? #291

peczenyj opened this issue Dec 2, 2024 · 0 comments
Labels
question Further information is requested

Comments

@peczenyj
Copy link

peczenyj commented Dec 2, 2024

Question

I am using env variable YAMLFIX_SEQUENCE_STYLE as "keep_style" and I have a yaml file like this

---
foo:
  -
    - bar:

after running yamlfix I got this

---
foo:
  -   - bar:

what is unexpected since I am specifying to not change the style. How can I avoid it?
and if I run yamllint I got this:

$ yamllint a.yaml 
a.yaml
  3:6       error    too many spaces after hyphen  (hyphens)

version used:

$ yamlfix --version
------------------------------------------------------------------
     yamlfix: 1.17.0
     Python: 3.12.3
     Platform: Linux-6.8.0-48-generic-x86_64-with-glibc2.39
------------------------------------------------------------------
@peczenyj peczenyj added the question Further information is requested label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant