PyCQA / flake8-import-order

Flake8 plugin that checks import order against various Python Style Guides
GNU Lesser General Public License v3.0
278 stars 72 forks source link

'from .a import a' should be before 'from .. import b' #160

Closed cancan101 closed 5 years ago

cancan101 commented 6 years ago

Are there any styles that put from .. import b before from .a import a? I am trying to match isort and am having trouble since isort puts the .. first.

pgjones commented 6 years ago

There isn't in the specified styles, although you could make your own.

There is also flake8-isort that might solve this exact issue.