mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
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:
@@ -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",
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user