lint: Prevent __future__ in zulip_bots/zulip_bots/bots.

We should eventually extend this lint rule to all of
zulip_bots.
This commit is contained in:
Steve Howell 2017-12-12 07:35:30 -06:00
parent f69d71c3b1
commit c4b42ff599

View file

@ -168,6 +168,9 @@ def build_custom_checkers(by_lang):
'exclude': set(['tools/provision']), 'exclude': set(['tools/provision']),
'include_only': set(['zulip/', 'tools/', 'zulip_botserver/']), 'include_only': set(['zulip/', 'tools/', 'zulip_botserver/']),
'description': 'Explicit python invocations should not include a version'}, '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$', {'pattern': '#!/usr/bin/env python$',
'include_only': set(['zulip_bots/']), 'include_only': set(['zulip_bots/']),
'description': 'Python shebangs must be python3'}, 'description': 'Python shebangs must be python3'},