mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
lint: Remove exclusions for Python 2 style type comments.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
2dc6d09c2a
commit
bfb314ff3a
@@ -429,19 +429,8 @@ python_rules = RuleList(
|
|||||||
'bad_lines': ['if my_django_model.pk == 42']},
|
'bad_lines': ['if my_django_model.pk == 42']},
|
||||||
{'pattern': r'^[ ]*# type: \(',
|
{'pattern': r'^[ ]*# type: \(',
|
||||||
'exclude': {
|
'exclude': {
|
||||||
# These directories, especially scripts/ and puppet/,
|
# these are (currently) python2 only
|
||||||
# have tools that need to run before a Zulip environment
|
'puppet/zulip_ops/files/zulip-ec2-configure-interfaces',
|
||||||
# is provisioned; in some of those, the `typing` module
|
|
||||||
# might not be available yet, so care is required.
|
|
||||||
'scripts/',
|
|
||||||
'tools/',
|
|
||||||
'puppet/',
|
|
||||||
# Zerver files that we should just clean.
|
|
||||||
'zerver/tests',
|
|
||||||
'zerver/openapi/python_examples.py',
|
|
||||||
'zerver/lib/request.py',
|
|
||||||
'zerver/views/streams.py',
|
|
||||||
# thumbor is (currently) python2 only
|
|
||||||
'zthumbor/',
|
'zthumbor/',
|
||||||
},
|
},
|
||||||
'description': 'Comment-style function type annotation. Use Python3 style annotations instead.',
|
'description': 'Comment-style function type annotation. Use Python3 style annotations instead.',
|
||||||
|
|||||||
Reference in New Issue
Block a user