ruff: Fix EXE001 Shebang is present but file is not executable.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
235f92afb0
commit
ca3e5a2746
12 changed files with 0 additions and 29 deletions
0
zulip/integrations/bridge_with_matrix/matrix_bridge.py
Normal file → Executable file
0
zulip/integrations/bridge_with_matrix/matrix_bridge.py
Normal file → Executable file
0
zulip/integrations/google/get-google-credentials
Normal file → Executable file
0
zulip/integrations/google/get-google-credentials
Normal file → Executable file
|
@ -1,9 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
import unittest
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -43,7 +40,3 @@ Zulip API configuration:
|
||||||
str(cm.exception),
|
str(cm.exception),
|
||||||
f"api_key or email not specified and file {expanded_test_path} does not exist",
|
f"api_key or email not specified and file {expanded_test_path} does not exist",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
unittest.main()
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
import zulip
|
import zulip
|
||||||
|
@ -19,7 +16,3 @@ class TestHashUtilDecode(TestCase):
|
||||||
for encoded_string, decoded_string in tests:
|
for encoded_string, decoded_string in tests:
|
||||||
with self.subTest(encoded_string=encoded_string):
|
with self.subTest(encoded_string=encoded_string):
|
||||||
self.assertEqual(zulip.hash_util_decode(encoded_string), decoded_string)
|
self.assertEqual(zulip.hash_util_decode(encoded_string), decoded_string)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
unittest.main()
|
|
||||||
|
|
0
zulip/zulip/api_examples.py
Normal file → Executable file
0
zulip/zulip/api_examples.py
Normal file → Executable file
0
zulip/zulip/examples/get-history
Normal file → Executable file
0
zulip/zulip/examples/get-history
Normal file → Executable file
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
ZULIP_BOTS_VERSION = "0.8.2"
|
ZULIP_BOTS_VERSION = "0.8.2"
|
||||||
|
|
0
zulip_bots/zulip_bots/bot_shell.py
Normal file → Executable file
0
zulip_bots/zulip_bots/bot_shell.py
Normal file → Executable file
|
@ -1,7 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from unittest import TestCase, mock
|
from unittest import TestCase, mock
|
||||||
|
@ -149,7 +147,3 @@ class TestBotLib(TestCase):
|
||||||
test_message("nomention", "foo", None)
|
test_message("nomention", "foo", None)
|
||||||
test_message("Max Mustermann", "@**Max Mustermann** foo", "foo")
|
test_message("Max Mustermann", "@**Max Mustermann** foo", "foo")
|
||||||
test_message(r"Max (Mustermann)#(*$&12]\]", r"@**Max (Mustermann)#(*$&12]\]** foo", "foo")
|
test_message(r"Max (Mustermann)#(*$&12]\]", r"@**Max (Mustermann)#(*$&12]\]** foo", "foo")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
unittest.main()
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
ZULIP_BOTSERVER_VERSION = "0.8.2"
|
ZULIP_BOTSERVER_VERSION = "0.8.2"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import unittest
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -311,7 +310,3 @@ class BotServerTests(BotServerTestCase):
|
||||||
mock_app.config.__setitem__.assert_any_call(
|
mock_app.config.__setitem__.assert_any_call(
|
||||||
"BOTS_LIB_MODULES", {"packaged_bot": packaged_bot_module}
|
"BOTS_LIB_MODULES", {"packaged_bot": packaged_bot_module}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
unittest.main()
|
|
||||||
|
|
0
zulip_botserver/zulip_botserver/server.py
Normal file → Executable file
0
zulip_botserver/zulip_botserver/server.py
Normal file → Executable file
Loading…
Add table
Reference in a new issue