Re-order project imports based on flake8-import-order

This commit is contained in:
Ian Cordasco 2016-02-25 11:14:41 -06:00
parent a4e984dbd2
commit 8d36355611
7 changed files with 14 additions and 11 deletions

View file

@ -1,10 +1,10 @@
"""Command-line implementation of flake8."""
import flake8
from flake8 import defaults
from flake8 import style_guide
from flake8.options import aggregator
from flake8.options import manager
from flake8.plugins import manager as plugin_manager
from flake8 import style_guide
def register_default_options(option_manager):

View file

@ -5,8 +5,8 @@ applies the user-specified command-line configuration on top of it.
"""
import logging
from flake8.options import config
from flake8 import utils
from flake8.options import config
LOG = logging.getLogger(__name__)

View file

@ -2,11 +2,11 @@
import collections
import logging
import pkg_resources
from flake8 import exceptions
from flake8.plugins import notifier
from flake8 import utils
from flake8.plugins import notifier
import pkg_resources
LOG = logging.getLogger(__name__)

View file

@ -1,6 +1,7 @@
"""Plugin built-in to Flake8 to treat pyflakes as a plugin."""
# -*- coding: utf-8 -*-
from __future__ import absolute_import
try:
# The 'demandimport' breaks pyflakes and flake8.plugins.pyflakes
from mercurial import demandimport
@ -10,11 +11,11 @@ else:
demandimport.disable()
import os
from flake8 import utils
import pyflakes
import pyflakes.checker
from flake8 import utils
def patch_pyflakes():
"""Add error codes to Pyflakes messages."""

View file

@ -1,11 +1,10 @@
"""Implementation of the StyleGuide used by Flake8."""
import collections
import enum
import linecache
import logging
import re
import enum
from flake8 import utils
__all__ = (

View file

@ -1,10 +1,12 @@
"""Packaging logic for Flake8."""
# -*- coding: utf-8 -*-
from __future__ import with_statement
import setuptools
import sys
import flake8
import setuptools
import flake8 # noqa
try:
# Work around a traceback with Nose on Python 2.6

View file

@ -22,6 +22,7 @@ use_develop = false
deps =
flake8
flake8-docstrings
flake8-import-order
commands =
flake8