From 3bbe972314af54df8c64c4b19b6d5ad6ada1dee2 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 18 Mar 2019 13:58:11 -0700 Subject: [PATCH] tools: Disable python3 shebang lint check for botserver. Since the botserver can be run directly after installation via pip, and only supports Python 3, we definitely want the explicit shebang lines there. We only don't want this in zulip/, which supports Python 2+3. --- tools/custom_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/custom_check.py b/tools/custom_check.py index 112b0f7..c8bd3d6 100644 --- a/tools/custom_check.py +++ b/tools/custom_check.py @@ -165,7 +165,7 @@ def build_custom_checkers(by_lang): # This rule might give false positives in virtualenv setup files which should be excluded, # and comments which should be rewritten to avoid use of "python2", "python3", etc. {'pattern': 'python[23]', - 'include_only': set(['zulip/', 'zulip_botserver/']), + 'include_only': set(['zulip/']), 'description': 'Explicit python invocations should not include a version'}, {'pattern': '__future__', 'include_only': set(['zulip_bots/zulip_bots/bots/']),