run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -10,7 +10,6 @@ from .loader import MigrationLoader
from .recorder import MigrationRecorder
from .state import ProjectState
class MigrationExecutor:
connection: django.db.backends.sqlite3.base.DatabaseWrapper = ...
loader: django.db.migrations.loader.MigrationLoader = ...
@@ -18,15 +17,11 @@ class MigrationExecutor:
progress_callback: Callable = ...
def __init__(
self,
connection: Optional[
Union[DefaultConnectionProxy, BaseDatabaseWrapper]
],
connection: Optional[Union[DefaultConnectionProxy, BaseDatabaseWrapper]],
progress_callback: Optional[Callable] = ...,
) -> None: ...
def migration_plan(
self,
targets: Union[List[Tuple[str, Optional[str]]], Set[Tuple[str, str]]],
clean_start: bool = ...,
self, targets: Union[List[Tuple[str, Optional[str]]], Set[Tuple[str, str]]], clean_start: bool = ...
) -> List[Tuple[Migration, bool]]: ...
def migrate(
self,
@@ -38,16 +33,8 @@ class MigrationExecutor:
) -> ProjectState: ...
def collect_sql(self, plan: List[Tuple[Migration, bool]]) -> List[str]: ...
def apply_migration(
self,
state: ProjectState,
migration: Migration,
fake: bool = ...,
fake_initial: bool = ...,
) -> ProjectState: ...
def unapply_migration(
self, state: ProjectState, migration: Migration, fake: bool = ...
self, state: ProjectState, migration: Migration, fake: bool = ..., fake_initial: bool = ...
) -> ProjectState: ...
def unapply_migration(self, state: ProjectState, migration: Migration, fake: bool = ...) -> ProjectState: ...
def check_replacements(self) -> None: ...
def detect_soft_applied(
self, project_state: Optional[ProjectState], migration: Migration
) -> Tuple[bool, ProjectState]: ...
def detect_soft_applied(self, project_state: Optional[ProjectState], migration: Migration) -> Tuple[bool, ProjectState]: ...