Skip to content

Commit

Permalink
[pre-commit.ci] Apply automatic pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 6, 2025
1 parent 9677013 commit 13e7a46
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/_nebari/keycloak.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def do_keycloak(config: schema.Main, *args):
username = args[1]
password = args[2] if len(args) >= 3 else None
groups = args[3] if len(args) >= 4 else None
create_user(keycloak_admin, username, password, domain=config.domain, groups=groups)
create_user(
keycloak_admin, username, password, domain=config.domain, groups=groups
)
elif args[0] == "listusers":
list_users(keycloak_admin)
else:
Expand Down
12 changes: 8 additions & 4 deletions src/_nebari/subcommands/keycloak.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
import pathlib
from typing import Tuple, List
from typing import List, Tuple

import typer
from typing_extensions import Annotated
Expand Down Expand Up @@ -37,9 +37,13 @@ def add_user(
"--config",
help="nebari configuration file path",
),
groups: Annotated[List[str], typer.Option(
"--groups", help="Role to give the user. Can be specified multiple times for multiple groups"
)] = None,
groups: Annotated[
List[str],
typer.Option(
"--groups",
help="Role to give the user. Can be specified multiple times for multiple groups",
),
] = None,
):
"""Add a user to Keycloak. User will be automatically added to the [italic]analyst[/italic] group."""
from nebari.plugins import nebari_plugin_manager
Expand Down

0 comments on commit 13e7a46

Please sign in to comment.