Skip to content

Local and third party packages are being sorted together #1104

@Siecje

Description

@Siecje

I am using develop but local imports and third party imports are being sorted together.

~/.isort.cfg

[settings]
known_third_party=gcutilities
force_sort_within_sections=1
no_lines_before=LOCALFOLDER
order_by_type=False
cody@ ~/D/why> tree
.
├── baz.py
└── Platform
    ├── foo.py
    └── __init__.py
cody@ ~/D/why> cat Platform/foo.py 
bar = 1

cody@ ~/D/why> cat baz.py 
from rest_framework import serializers

from Platform.foo import bar

cody@ ~/D/why> isort baz.py 
Fixing /home/cody/Desktop/why/baz.py
cody@ ~/D/why> cat baz.py 
from Platform.foo import bar
from rest_framework import serializers

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions