Skip to content

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

Open
loft-orbital/isort
#1
@superlevure

Description

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 ?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions