isort icon indicating copy to clipboard operation
isort copied to clipboard

Option to add empty line(s) between top-level package imports

Open superlevure opened this issue 1 year ago • 1 comments

Hi!

I've looked extensively in the documentation but I don't think there's a way to add an empty line between top-level package imports so this:

import os
import sys

from django.db.models.signals import m2m_changed
from django.utils import functional
from django_filters import BooleanFilter
from junitparser import JUnitXml
from junitparser import TestSuite
from loguru import logger

Would turn into this:

import os
import sys

from django.db.models.signals import m2m_changed
from django.utils import functional

from django_filters import BooleanFilter

from junitparser import JUnitXml
from junitparser import TestSuite

from loguru import logger

Am I missing something?

If it is indeed not possible, I'd be willing to push a PR to implement the option. Any push-back ?

superlevure avatar Mar 02 '23 08:03 superlevure

I think that would be a very cool feature @anirudnits.

thibaut-lo avatar Apr 10 '23 21:04 thibaut-lo