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

@@ -12,9 +12,7 @@ class TranslatableFile:
file: str = ...
dirpath: str = ...
locale_dir: str = ...
def __init__(
self, dirpath: str, file_name: str, locale_dir: Any
) -> None: ...
def __init__(self, dirpath: str, file_name: str, locale_dir: Any) -> None: ...
def __eq__(self, other: TranslatableFile) -> bool: ...
def __lt__(self, other: TranslatableFile) -> bool: ...
@property
@@ -24,9 +22,7 @@ class BuildFile:
command: django.core.management.commands.makemessages.Command = ...
domain: str = ...
translatable: django.core.management.commands.makemessages.TranslatableFile = ...
def __init__(
self, command: Command, domain: str, translatable: TranslatableFile
) -> None: ...
def __init__(self, command: Command, domain: str, translatable: TranslatableFile) -> None: ...
def is_templatized(self) -> bool: ...
def path(self) -> str: ...
def work_path(self) -> str: ...
@@ -67,8 +63,6 @@ class Command(BaseCommand):
def remove_potfiles(self) -> None: ...
def find_files(self, root: str) -> List[TranslatableFile]: ...
def process_files(self, file_list: List[TranslatableFile]) -> None: ...
def process_locale_dir(
self, locale_dir: Any, files: List[TranslatableFile]
) -> None: ...
def process_locale_dir(self, locale_dir: Any, files: List[TranslatableFile]) -> None: ...
def write_po_file(self, potfile: str, locale: str) -> None: ...
def copy_plural_forms(self, msgs: str, locale: str) -> str: ...