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

Groups #5

Merged
merged 8 commits into from
Nov 6, 2023
Merged

Groups #5

merged 8 commits into from
Nov 6, 2023

Conversation

Rich-Harris
Copy link
Owner

This results in (IMHO) tidier output. Previously, we'd add blank lines between any statements within a body that took up multiple lines. The new algorithm is based on groups — imports are grouped, variables are grouped, and statements that require multiple lines are put in their own group. We also start a new group if we encounter a statement with leading comments.

@Rich-Harris Rich-Harris merged commit f61783d into main Nov 6, 2023
2 checks passed
@Rich-Harris Rich-Harris deleted the groups branch November 6, 2023 21:46
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

Successfully merging this pull request may close these issues.

None yet

1 participant