mirror of https://github.com/zulip/zulip.git
lint: Clean up E114 PEP-8 lint rule.
This commit is contained in:
parent
22d1aa396b
commit
df3d6aee5d
|
@ -87,7 +87,7 @@ def check_pep8(files):
|
|||
# ignored. It either doesn't fit with the style of the project or should
|
||||
# actually be cleaned up.
|
||||
#
|
||||
'E114', 'E115', 'E121', 'E123', 'E126', 'E226', 'E241', 'E261', 'E302',
|
||||
'E115', 'E121', 'E123', 'E126', 'E226', 'E241', 'E261', 'E302',
|
||||
'E305', 'E306', 'E401', 'E501', 'E702', 'E711', 'E712', 'E713', 'E714',
|
||||
'E741',
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ class StripeHookTests(WebhookTestCase):
|
|||
FIXTURE_DIR_NAME = 'stripe'
|
||||
|
||||
def test_charge_dispute_closed(self):
|
||||
# type: () -> None
|
||||
# type: () -> None
|
||||
expected_subject = u"Charge ch_00000000000000"
|
||||
expected_message = u"A charge dispute for **10.01aud** has been closed as **won**.\nThe charge in dispute was **[ch_00000000000000](https://dashboard.stripe.com/payments/ch_00000000000000)**."
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ def api_transifex_webhook(request, user_profile, client,
|
|||
language=REQ(), translated=REQ(default=None),
|
||||
reviewed=REQ(default=None),
|
||||
stream=REQ(default='transifex')):
|
||||
# type: (HttpRequest, UserProfile, Client, str, str, str, Optional[int], Optional[int], str) -> HttpResponse
|
||||
# type: (HttpRequest, UserProfile, Client, str, str, str, Optional[int], Optional[int], str) -> HttpResponse
|
||||
subject = "{} in {}".format(project, language)
|
||||
if translated:
|
||||
body = "Resource {} fully translated.".format(resource)
|
||||
|
|
|
@ -14,7 +14,7 @@ import ujson
|
|||
def api_yo_app_webhook(request, user_profile, client, email=REQ(default=None),
|
||||
username=REQ(default='Yo Bot'), topic=REQ(default=None),
|
||||
user_ip=REQ(default=None)):
|
||||
# type: (HttpRequest, UserProfile, Client, Optional[str], str, Optional[str], Optional[str]) -> HttpResponse
|
||||
# type: (HttpRequest, UserProfile, Client, Optional[str], str, Optional[str], Optional[str]) -> HttpResponse
|
||||
|
||||
body = ('Yo from %s') % (username,)
|
||||
check_send_message(user_profile, client, 'private', [email], topic, body)
|
||||
|
|
Loading…
Reference in New Issue