Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 9, 2024
1 parent f9582ff commit 6d71941
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions voila/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,9 @@ class Voila(Application):
flags = {
**flags,
"token": (
{
"Voila": {"auto_token": True}
},
{"Voila": {"auto_token": True}},
_(""),
)
),
}

description = Unicode(
Expand Down Expand Up @@ -197,7 +195,7 @@ class Voila(Application):
"kernel_spec_manager_class": "VoilaConfiguration.kernel_spec_manager_class",
}
if JUPYTER_SERVER_2:
aliases = {**aliases, 'token': 'Voila.token'}
aliases = {**aliases, "token": "Voila.token"}
classes = [VoilaConfiguration, VoilaExecutor, VoilaExporter]
connection_dir_root = Unicode(
config=True,
Expand Down Expand Up @@ -364,9 +362,9 @@ def hook(req: tornado.web.RequestHandler,
""",
)

token = Unicode(None, help="""Token for identity provider """, allow_none=True).tag(
config=True
)
token = Unicode(
None, help="""Token for identity provider """, allow_none=True
).tag(config=True)

auto_token = Bool(
False, help="""Generate token automatically """, allow_none=True
Expand Down

0 comments on commit 6d71941

Please sign in to comment.