Skip to content

Commit 3e65b9b

Browse files
chore: fix formatting based on new black version (#1842)
1 parent 0c08503 commit 3e65b9b

File tree

6 files changed

+10
-24
lines changed

6 files changed

+10
-24
lines changed

slack_sdk/oauth/installation_store/sqlite3/__init__.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def connect(self) -> Connection:
4848

4949
def create_tables(self):
5050
with sqlite3.connect(database=self.database) as conn:
51-
conn.execute(
52-
"""
51+
conn.execute("""
5352
create table slack_installations (
5453
id integer primary key autoincrement,
5554
client_id text not null,
@@ -78,21 +77,17 @@ def create_tables(self):
7877
token_type text,
7978
installed_at datetime not null default current_timestamp
8079
);
81-
"""
82-
)
83-
conn.execute(
84-
"""
80+
""")
81+
conn.execute("""
8582
create index slack_installations_idx on slack_installations (
8683
client_id,
8784
enterprise_id,
8885
team_id,
8986
user_id,
9087
installed_at
9188
);
92-
"""
93-
)
94-
conn.execute(
95-
"""
89+
""")
90+
conn.execute("""
9691
create table slack_bots (
9792
id integer primary key autoincrement,
9893
client_id text not null,
@@ -110,18 +105,15 @@ def create_tables(self):
110105
is_enterprise_install boolean not null default 0,
111106
installed_at datetime not null default current_timestamp
112107
);
113-
"""
114-
)
115-
conn.execute(
116-
"""
108+
""")
109+
conn.execute("""
117110
create index slack_bots_idx on slack_bots (
118111
client_id,
119112
enterprise_id,
120113
team_id,
121114
installed_at
122115
);
123-
"""
124-
)
116+
""")
125117
self.logger.debug(f"Tables have been created (database: {self.database})")
126118
conn.commit()
127119

slack_sdk/oauth/state_store/sqlite3/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,13 @@ def connect(self) -> Connection:
4545

4646
def create_tables(self):
4747
with sqlite3.connect(database=self.database) as conn:
48-
conn.execute(
49-
"""
48+
conn.execute("""
5049
create table oauth_states (
5150
id integer primary key autoincrement,
5251
state text not null,
5352
expire_at datetime not null
5453
);
55-
"""
56-
)
54+
""")
5755
self.logger.debug(f"Tables have been created (database: {self.database})")
5856
conn.commit()
5957

slack_sdk/rtm/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from slack_sdk.aiohttp_version_checker import validate_aiohttp_version
2020
from slack_sdk.web.legacy_client import LegacyWebClient as WebClient
2121

22-
2322
validate_aiohttp_version(aiohttp.__version__)
2423

2524

tests/slack_sdk/socket_mode/mock_socket_mode_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from aiohttp import WSMsgType, web
1212

13-
1413
socket_mode_envelopes = [
1514
"""{"envelope_id":"1d3c79ab-0ffb-41f3-a080-d19e85f53649","payload":{"token":"verification-token","team_id":"T111","team_domain":"xxx","channel_id":"C111","channel_name":"random","user_id":"U111","user_name":"testxyz","command":"/hello-socket-mode","text":"","api_app_id":"A111","response_url":"https://hooks.slack.com/commands/T111/111/xxx","trigger_id":"111.222.xxx"},"type":"slash_commands","accepts_response_payload":true}""",
1615
"""{"envelope_id":"cda4159a-72a5-4744-aba3-4d66eb52682b","payload":{"token":"verification-token","team_id":"T111","api_app_id":"A111","event":{"client_msg_id":"f0582a78-72db-4feb-b2f3-1e47d66365c8","type":"app_mention","text":"<@U111>","user":"U222","ts":"1610241741.000200","team":"T111","blocks":[{"type":"rich_text","block_id":"Sesm","elements":[{"type":"rich_text_section","elements":[{"type":"user","user_id":"U111"}]}]}],"channel":"C111","event_ts":"1610241741.000200"},"type":"event_callback","event_id":"Ev111","event_time":1610241741,"authorizations":[{"enterprise_id":null,"team_id":"T111","user_id":"U222","is_bot":true,"is_enterprise_install":false}],"is_ext_shared_channel":false,"event_context":"1-app_mention-T111-C111"},"type":"events_api","accepts_response_payload":false,"retry_attempt":0,"retry_reason":""}""",

tests/web/classes/test_blocks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from slack.web.classes.objects import PlainTextObject, MarkdownTextObject
1919
from . import STRING_3001_CHARS
2020

21-
2221
# https://docs.slack.dev/reference/block-kit/blocks
2322

2423

tests/web/classes/test_elements.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from slack.web.classes.objects import ConfirmObject, Option
2525
from . import STRING_3001_CHARS, STRING_301_CHARS
2626

27-
2827
# -------------------------------------------------
2928
# Interactive Elements
3029
# -------------------------------------------------

0 commit comments

Comments
 (0)