Skip to content

Normalize leading blank lines when moving imports #163

@amyreese

Description

@amyreese

Running µsort on this sort of input does what I would consider to be the "wrong thing":

import re

import usort
import trailrunner

print("hello")

This gets sorted into:

import re

import trailrunner

import usort

print("hello")

Ie, the leading blank line above import usort is kept when moving usort below trailrunner, even though they are in the same category.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions