From c4b42ff599fc6d4547b0b4a7b320801f7d2ea2b3 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Tue, 12 Dec 2017 07:35:30 -0600 Subject: [PATCH] lint: Prevent __future__ in zulip_bots/zulip_bots/bots. We should eventually extend this lint rule to all of zulip_bots. --- tools/custom_check.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/custom_check.py b/tools/custom_check.py index d4342e6..6bd5ea5 100644 --- a/tools/custom_check.py +++ b/tools/custom_check.py @@ -168,6 +168,9 @@ def build_custom_checkers(by_lang): 'exclude': set(['tools/provision']), 'include_only': set(['zulip/', 'tools/', 'zulip_botserver/']), 'description': 'Explicit python invocations should not include a version'}, + {'pattern': '__future__', + 'include_only': set(['zulip_bots/zulip_bots/bots/']), + 'description': 'Bots no longer need __future__ imports.'}, {'pattern': '#!/usr/bin/env python$', 'include_only': set(['zulip_bots/']), 'description': 'Python shebangs must be python3'},