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

Not detecting local imports #170

Closed Dreamsorcerer closed 4 years ago

Dreamsorcerer commented 4 years ago

I keep getting I100 and I202 because it detects imports as third-party, when they are local modules in the application. e.g. Additional newline in a group of imports. 'from constants import MARGIN' is identified as Third Party..

Shouldn't it be able to see that these modules are local (i.e. they are in the same directory as the file doing the importing)?

pgjones commented 4 years ago

Hi @Dreamsorcerer, this plugin cannot detect which packages are local, instead you must inform it via the configuration application-import-names,