zulint: Move printer.py module to tools/zulint.

At this point, tools/linter_lib is intended to be the directory of
Zulip-specific code.
This commit is contained in:
Tim Abbott
2018-08-04 14:56:46 -07:00
parent 55ba434ecb
commit c0beeebc3e
6 changed files with 5 additions and 8 deletions

View File

@@ -59,9 +59,6 @@ ignore_errors = True
[mypy-lib,lib.*] [mypy-lib,lib.*]
ignore_missing_imports = True ignore_missing_imports = True
[mypy-linter_lib.printer]
ignore_missing_imports = True
[mypy-zulint,zulint.*,zulint.lister.*] [mypy-zulint,zulint.*,zulint.lister.*]
ignore_missing_imports = True ignore_missing_imports = True

View File

@@ -7,7 +7,7 @@ import os
import re import re
import traceback import traceback
from .printer import print_err, colors from zulint.printer import print_err, colors
from typing import cast, Any, Callable, Dict, List, Optional, Tuple, Iterable from typing import cast, Any, Callable, Dict, List, Optional, Tuple, Iterable
@@ -525,7 +525,7 @@ def build_custom_checkers(by_lang):
# We are likely to want to keep these dirs Python 2+3 compatible, # We are likely to want to keep these dirs Python 2+3 compatible,
# since the plan includes extracting them to a separate project eventually. # since the plan includes extracting them to a separate project eventually.
'tools/lib', 'tools/lib',
'tools/linter_lib', 'tools/zulint',
# TODO: Update our migrations from Text->str. # TODO: Update our migrations from Text->str.
'zerver/migrations/', 'zerver/migrations/',
# thumbor is (currently) python2 only # thumbor is (currently) python2 only

View File

@@ -3,7 +3,7 @@ from __future__ import absolute_import
import subprocess import subprocess
from .printer import print_err, colors from zulint.printer import print_err, colors
from typing import List from typing import List

View File

@@ -3,7 +3,7 @@ from __future__ import absolute_import
import subprocess import subprocess
from .printer import print_err, colors from zulint.printer import print_err, colors
from typing import Any, Dict, List from typing import Any, Dict, List

View File

@@ -10,7 +10,7 @@ import subprocess
import sys import sys
from typing import Any, Callable, Dict, List, Optional from typing import Any, Callable, Dict, List, Optional
from linter_lib.printer import print_err, colors from zulint.printer import print_err, colors
def add_default_linter_arguments(parser): def add_default_linter_arguments(parser):
# type: (argparse.ArgumentParser) -> None # type: (argparse.ArgumentParser) -> None