diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index 89f9b700a7..7faa9cb604 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -386,10 +386,10 @@ def process_notice(notice, log): if options.forward_class_messages and notice.opcode.lower() == "crypt": body = decrypt_zephyr(zephyr_class, notice.instance.lower(), body) - zeph = { 'time': str(notice.time), - 'sender': notice.sender, - 'zsig': zsig, # logged here but not used by app - 'content': body} + zeph = {'time': str(notice.time), + 'sender': notice.sender, + 'zsig': zsig, # logged here but not used by app + 'content': body} if is_huddle: zeph['type'] = 'private' zeph['recipient'] = huddle_recipients diff --git a/tools/lint-all b/tools/lint-all index 44184c10e2..b2709c496c 100755 --- a/tools/lint-all +++ b/tools/lint-all @@ -82,7 +82,7 @@ def check_pep8(files): # type: (List[str]) -> bool failed = False ignored_rules = [ - 'E402', 'E501', 'W503', 'E711', 'E201', 'E128', 'E226', + 'E402', 'E501', 'W503', 'E711', 'E128', 'E226', 'E126', 'E121', 'E122', 'E123', 'E266', 'E265', 'E261', 'E221', 'E303', 'E241', 'E712', 'E702', 'E401', 'E115', 'E114', 'E731', 'E302', 'E129', 'E741', 'E714', 'W391', 'E713', 'E502', 'E131', 'E305', 'E251', 'E306', diff --git a/tools/test-tools b/tools/test-tools index cd1b014813..160fd372b8 100755 --- a/tools/test-tools +++ b/tools/test-tools @@ -29,7 +29,7 @@ if __name__ == '__main__': if args.coverage: import coverage - cov = coverage.Coverage(branch=True, omit=[ "*/zulip-venv-cache/*", dir_join(tools_test_dir, "*")]) + cov = coverage.Coverage(branch=True, omit=["*/zulip-venv-cache/*", dir_join(tools_test_dir, "*")]) cov.start() suite = loader.discover(start_dir=tools_test_dir, top_level_dir=root_dir) diff --git a/zerver/tests/test_messages.py b/zerver/tests/test_messages.py index cc68df9ad3..f87fd35efc 100644 --- a/zerver/tests/test_messages.py +++ b/zerver/tests/test_messages.py @@ -1006,7 +1006,7 @@ class EditMessageTest(ZulipTestCase): # type: (int, text_type, bool) -> None new_subject = 'subject' + unique_str new_content = 'content' + unique_str - params_dict = { 'message_id': id_, 'subject': new_subject} + params_dict = {'message_id': id_, 'subject': new_subject} if not topic_only: params_dict['content'] = new_content result = self.client_post("/json/update_message", params_dict) @@ -1023,7 +1023,7 @@ class EditMessageTest(ZulipTestCase): old_content = message.content new_subject = 'subject' + unique_str new_content = 'content' + unique_str - params_dict = { 'message_id': id_, 'subject': new_subject} + params_dict = {'message_id': id_, 'subject': new_subject} if not topic_only: params_dict['content'] = new_content result = self.client_post("/json/update_message", params_dict)