Skip to content

Commit e4a5e08

Browse files
committed
Apply formatter to samples
1 parent 767095b commit e4a5e08

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

samples/oauth_app_settings.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,32 @@
1616

1717
logging.basicConfig(level=logging.DEBUG)
1818

19+
1920
def success(args: SuccessArgs) -> BoltResponse:
2021
return BoltResponse(status=200, body="Thanks!")
2122

23+
2224
def failure(args: FailureArgs) -> BoltResponse:
2325
return BoltResponse(status=args.suggested_status_code, body=args.reason)
2426

27+
2528
app = App(
2629
signing_secret=os.environ.get("SLACK_SIGNING_SECRET"),
2730
installation_store=FileInstallationStore(),
2831
oauth_settings=OAuthSettings(
2932
client_id=os.environ.get("SLACK_CLIENT_ID"),
3033
client_secret=os.environ.get("SLACK_CLIENT_SECRET"),
31-
scopes=["app_mentions:read","channels:history","im:history","chat:write"],
34+
scopes=["app_mentions:read", "channels:history", "im:history", "chat:write"],
3235
user_scopes=[],
3336
redirect_uri=None,
3437
install_path="/slack/install",
3538
redirect_uri_path="/slack/oauth_redirect",
3639
state_store=FileOAuthStateStore(expiration_seconds=600),
37-
callback_options=CallbackOptions(
38-
success=success,
39-
failure=failure
40-
)
41-
)
40+
callback_options=CallbackOptions(success=success, failure=failure),
41+
),
4242
)
4343

44+
4445
@app.command("/hello-bolt-python")
4546
def test_command(body, respond, client, ack, logger):
4647
logger.info(body)

0 commit comments

Comments
 (0)