mirror of https://github.com/zulip/zulip.git
lint: Accept mentions of specific Python versions.
We're about to do this (a) in a number of places mentioning system packages like `python3-dev` to install, and (b) in the shebangs of every script in the tree.
This commit is contained in:
parent
61666a9262
commit
ceccd0c0f6
|
@ -307,13 +307,6 @@ def build_custom_checkers(by_lang):
|
||||||
{'pattern': 'render_to_response\(',
|
{'pattern': 'render_to_response\(',
|
||||||
'description': "Use render() instead of render_to_response().",
|
'description': "Use render() instead of render_to_response().",
|
||||||
},
|
},
|
||||||
# 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]',
|
|
||||||
'exclude': set(['tools/lib/provision.py',
|
|
||||||
'tools/setup/setup_venvs.py',
|
|
||||||
'scripts/lib/setup_venv.py']),
|
|
||||||
'description': 'Explicit python invocations should not include a version'},
|
|
||||||
{'pattern': '(^|\s)open\s*\(',
|
{'pattern': '(^|\s)open\s*\(',
|
||||||
'description': 'open() should not be used in Zulip\'s bots. Use functions'
|
'description': 'open() should not be used in Zulip\'s bots. Use functions'
|
||||||
' provided by the bots framework to access the filesystem.',
|
' provided by the bots framework to access the filesystem.',
|
||||||
|
|
Loading…
Reference in New Issue