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

New error code and condition, I202 #107

Closed pgjones closed 7 years ago

pgjones commented 7 years ago

As newlines represent a change of import grouping, additional newlines should be considered incorrect. For example,

import asyncio

import secrets

Should raise a I202 as the newline does not represent an acceptable newline location (as the grouping is the same).

mitar commented 7 years ago

Yes, this surprised me as well. One can add random newlines and it does not complain.