api: Update lint and analysis code to forget about now-gone files.

These files don't exist in this repository anymore, so there's
no need to mention them in exclude lists for lint and mypy.
This commit is contained in:
Greg Price
2017-07-31 16:06:30 -07:00
committed by Tim Abbott
parent b8089bdd1c
commit 5784724d00
2 changed files with 0 additions and 14 deletions

View File

@@ -1,7 +1,6 @@
# Exclude some directories and files from lint checking
EXCLUDED_FILES = [
# Third-party code that doesn't match our style
"api/integrations/perforce/git_p4.py",
"puppet/apt/.forge-release",
"puppet/apt/README.md",
"static/third",

View File

@@ -16,26 +16,13 @@ TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
os.chdir(os.path.dirname(TOOLS_DIR))
exclude_common = """
api/integrations/codebase/zulip_codebase_config.py
api/integrations/git/zulip_git_config.py
api/integrations/perforce/git_p4.py
api/integrations/perforce/zulip_perforce_config.py
api/integrations/svn/zulip_svn_config.py
api/integrations/trac/zulip_trac_config.py
api/integrations/git/post-receive
zproject/settings.py
zproject/test_settings.py
""".split()
# We don't run mypy on api/bots since the code there will
# often be shared with other projects that do not want a mypy
# dependency (at least while it's still kind of beta).
exclude_common += ['api/bots']
exclude_py2 = [] # type: List[str]
exclude_py3 = """
api/integrations/zephyr/process_ccache
""".split()
parser = argparse.ArgumentParser(description="Run mypy on files tracked by git.")