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

Third-party after local import should be forbidden but isn't #171

Open hydrargyrum opened 4 years ago

hydrargyrum commented 4 years ago

When putting a third-party import after local import, pep8 style should reject it, but it doesn't:

% cat test.py
import os

import third

from .local import something

import party
% flake8 test.py --select=I2 --import-order-style=pep8 && echo no problem
no problem