isort icon indicating copy to clipboard operation
isort copied to clipboard

Any approach to trim empty lines before imports?

Open huxuan opened this issue 2 years ago • 2 comments
trafficstars

Here is a file naming test.py and I tried to use isort --float-to-top --lines-before-imports 0 test.py but nothing changed.

"""TEST"""


import a


def foo():
    pass

Expected results might be

"""TEST"""
import a


def foo():
    pass

I noticed there is a NOTE for the option float_to_top, just want to ensure if there is any approach currently to achieve that.

huxuan avatar Jan 05 '23 06:01 huxuan

@huxuan I can solve this issue. Plz assign it to me.

SarthakJaindebugger avatar Oct 04 '23 15:10 SarthakJaindebugger

Hi @SarthakJaindebugger, seems I do not have permission to assign an issue, maybe you can contact the maintainer or send a pull request fixing this issue directly.

huxuan avatar Oct 07 '23 07:10 huxuan