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:
parent
f69d71c3b1
commit
c4b42ff599
|
@ -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'},
|
||||||
|
|
Loading…
Reference in a new issue