Skip to content

Commit

Permalink
zulint: Move lister.py to tools/zulint.
Browse files Browse the repository at this point in the history
This is preparatory refactoring work for being able to extract the
linter as an external project called "zulint".
  • Loading branch information
timabbott committed Aug 5, 2018
1 parent 5303281 commit 1fcc2a6
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ignore_missing_imports = True
[mypy-linter_lib.printer]
ignore_missing_imports = True

[mypy-lister,.lister]
[mypy-zulint,zulint.lister,zulint.lister.*]
ignore_missing_imports = True


Expand Down
2 changes: 1 addition & 1 deletion tools/check-templates
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import logging
from lib import sanity_check
sanity_check.check_venv(__file__)

import lister
from zulint import lister
from typing import cast, Callable, Dict, Iterable, List

EXCLUDED_FILES = [
Expand Down
2 changes: 1 addition & 1 deletion tools/html-grep
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ from typing import List
from lib import sanity_check
sanity_check.check_venv(__file__)

import lister
from zulint import lister

USAGE = '''
This file greps HTML files for keywords in a context-sensitive manner.
Expand Down
2 changes: 1 addition & 1 deletion tools/lint
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ from linter_lib.printer import print_err, colors
from lib import sanity_check
sanity_check.check_venv(__file__)

import lister
from zulint import lister
from typing import cast, Callable, Dict, Iterator, List


Expand Down
2 changes: 1 addition & 1 deletion tools/replacer
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import argparse
from subprocess import check_call
from typing import List, Dict, Union

from .lister import list_files
from zulint.lister import list_files

def do_replace(listing, old_string, new_string):
# type: (Union[Dict[str, List[str]], List[str]], str, str) -> None
Expand Down
2 changes: 1 addition & 1 deletion tools/run-mypy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import sys
import argparse
import subprocess

import lister
from zulint import lister
from typing import cast, Dict, List

TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
Expand Down
Empty file added tools/zulint/__init__.py
Empty file.
File renamed without changes.

0 comments on commit 1fcc2a6

Please sign in to comment.