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

Two lines of same group requires I201 #154

Closed rafis closed 6 years ago

rafis commented 6 years ago

The following two lines are detected as same group that is 'Third Party'. Why it requires to put a newline between them?

from django_telegrambot.apps import DjangoTelegramBot
from telegram.ext import CommandHandler, Filters, MessageHandler

Error message:

.\bot\telegrambot.py:2:1: I201 Missing newline between import groups. 'from telegram.ext import CommandHandler, MessageHandler, Filters' is identified as Third Party and 'from django_telegrambot.apps import DjangoTelegramBot' is identified as Third Party.

pgjones commented 6 years ago

This is the definition of the Cryptography style you can chose another if you disagree.