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

Avoid inserting extra newlines for comment-delimited import blocks #1201

Merged
merged 2 commits into from
Dec 11, 2022

Conversation

charliermarsh
Copy link
Member

Tested on the zulip codebase.

Resolves #1193.

.rev()
{
let line = line.trim();
if seen_blank {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not very happy with this but it's conceptually very difficult to support without some kind of text parsing as long as we're operating on the AST.

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.

I001 conflicts with isort on blank lines between import and comment before function
1 participant