mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
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:
3
mypy.ini
3
mypy.ini
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user