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

Fix sort_simple_yaml for comments with leading spaces #987

Closed
wants to merge 2 commits into from
Closed

Fix sort_simple_yaml for comments with leading spaces #987

wants to merge 2 commits into from

Conversation

r-downing
Copy link

The sort_simple_yaml.py script doesn't handle comments correctly if they have any space before the '#'. Added a test-case to demonstrate, and a simple fix

@asottile
Copy link
Member

this feels like a garbage in garbage out scenario

the tool only supports top level yaml so supporting indentation is intentionally omitted

@r-downing r-downing closed this Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants