Apply isort to the project
This commit is contained in:
1 parent
4b15e11faa
commit
6ab1d58c47
15 files changed
+27
-19
No files matched your search
@@ -5,10 +5,9 @@ from importlib import import_module
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from ..utils import register_linting_configuration_options
|
||||
from ...constants import __version__
|
||||
|
||||
from ...migration_linter import MigrationLinter, MessageType
|
||||
from ...migration_linter import MessageType, MigrationLinter
|
||||
from ..utils import register_linting_configuration_options
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
||||
@@ -5,24 +5,24 @@ import inspect
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
from subprocess import Popen, PIPE
|
||||
from enum import Enum, unique
|
||||
from subprocess import PIPE, Popen
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.management import call_command
|
||||
from django.db import DEFAULT_DB_ALIAS, connections, ProgrammingError
|
||||
from django.db import DEFAULT_DB_ALIAS, ProgrammingError, connections
|
||||
from django.db.migrations import RunPython, RunSQL
|
||||
from enum import Enum, unique
|
||||
from six import PY2
|
||||
|
||||
from .cache import Cache
|
||||
from .constants import (
|
||||
DEFAULT_CACHE_PATH,
|
||||
EXPECTED_DATA_MIGRATION_ARGS,
|
||||
DJANGO_APPS_WITH_MIGRATIONS,
|
||||
EXPECTED_DATA_MIGRATION_ARGS,
|
||||
)
|
||||
from .utils import clean_bytes_to_str, get_migration_abspath, split_migration_path
|
||||
from .operations import IgnoreMigration
|
||||
from .sql_analyser import analyse_sql_statements
|
||||
from .utils import clean_bytes_to_str, get_migration_abspath, split_migration_path
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from .analyser import analyse_sql_statements # noqa
|
||||
from .base import BaseAnalyser # noqa
|
||||
from .mysql import MySqlAnalyser # noqa
|
||||
from .postgresql import PostgresqlAnalyser # noqa
|
||||
from .sqlite import SqliteAnalyser # noqa
|
||||
from .analyser import analyse_sql_statements # noqa
|
||||
Reference in new issue
Block a user