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

Crop long lines #4

Closed
lyz-code opened this issue Nov 25, 2020 · 1 comment
Closed

Crop long lines #4

lyz-code opened this issue Nov 25, 2020 · 1 comment

Comments

@lyz-code
Copy link
Owner

lyz-code commented Nov 25, 2020

Description

Yamllint specifies a maximum line length.

Yamlfix does not automatically crop long lines, nor join together short multilines, nor convert back to one line the multilines that do no longer need cropping, like black does.

Possible Solution

Dive into the ruamel.yaml options to see if they support it, or create a function to fix it afterwards.

Additional context

If you understand something else of the library, try to share it in this issue

Once complete comment in this and this PRs

@lyz-code
Copy link
Owner Author

Fixed in #175 available since 0.10.0. It will now crop lines longer than 80 characters, although it's not as clever as black that joins many short lines into one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant