Sometimes the I100 message has the unhelpful form "from X should be before from X"
Simple test case based on a real example:
$ more tests/test_cases/wrong_from_import_same.py
from os import system
from os import path # I100
Before the fix would get this:
$ flake8 --select I100 tests/test_cases/wrong_from_import_same.py
tests/test_cases/wrong_from_import_same.py:3:1: I100 Import statements are in the wrong order. from os should be before from os
With this change you get this:
$ flake8 --select I100 tests/test_cases/wrong_from_import_same.py
tests/test_cases/wrong_from_import_same.py:3:1: I100 Import statements are in the wrong order. path should be before system
Sometimes the I100 message has the unhelpful form "from X should be before from X"
Simple test case based on a real example:
Before the fix would get this:
With this change you get this: