Skip to content

Commit ca3e5a2

Browse files
committed
ruff: Fix EXE001 Shebang is present but file is not executable.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 235f92a commit ca3e5a2

File tree

12 files changed

+0
-29
lines changed

12 files changed

+0
-29
lines changed

zulip/integrations/bridge_with_matrix/matrix_bridge.py

100644100755
File mode changed.

zulip/integrations/google/get-google-credentials

100644100755
File mode changed.

zulip/tests/test_default_arguments.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
#!/usr/bin/env python3
2-
31
import argparse
42
import io
53
import os
6-
import unittest
74
from unittest import TestCase
85
from unittest.mock import patch
96

@@ -43,7 +40,3 @@ def test_config_path_with_tilde(self, mock_os_path_exists: bool) -> None:
4340
str(cm.exception),
4441
f"api_key or email not specified and file {expanded_test_path} does not exist",
4542
)
46-
47-
48-
if __name__ == "__main__":
49-
unittest.main()

zulip/tests/test_hash_util_decode.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env python3
2-
3-
import unittest
41
from unittest import TestCase
52

63
import zulip
@@ -19,7 +16,3 @@ def test_hash_util_decode(self) -> None:
1916
for encoded_string, decoded_string in tests:
2017
with self.subTest(encoded_string=encoded_string):
2118
self.assertEqual(zulip.hash_util_decode(encoded_string), decoded_string)
22-
23-
24-
if __name__ == "__main__":
25-
unittest.main()

zulip/zulip/api_examples.py

100644100755
File mode changed.

zulip/zulip/examples/get-history

100644100755
File mode changed.

zulip_bots/setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python3
2-
31
from setuptools import find_packages, setup
42

53
ZULIP_BOTS_VERSION = "0.8.2"

zulip_bots/zulip_bots/bot_shell.py

100644100755
File mode changed.

zulip_bots/zulip_bots/tests/test_run.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#!/usr/bin/env python3
21
import os
32
import sys
4-
import unittest
53
from pathlib import Path
64
from typing import Optional
75
from unittest import TestCase, mock
@@ -149,7 +147,3 @@ def test_message(name: str, message: str, expected_return: Optional[str]) -> Non
149147
test_message("nomention", "foo", None)
150148
test_message("Max Mustermann", "@**Max Mustermann** foo", "foo")
151149
test_message(r"Max (Mustermann)#(*$&12]\]", r"@**Max (Mustermann)#(*$&12]\]** foo", "foo")
152-
153-
154-
if __name__ == "__main__":
155-
unittest.main()

zulip_botserver/setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python3
2-
31
from setuptools import find_packages, setup
42

53
ZULIP_BOTSERVER_VERSION = "0.8.2"

0 commit comments

Comments
 (0)