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 Jun 27, 2024
1 parent 226d2f1 commit 3b8bfbd
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from oauthenticator.generic import GenericOAuthenticator
from traitlets import Bool, Unicode, Union


# A set of roles to create automatically to help with basic permissions
DEFAULT_ROLES = [
{
Expand Down Expand Up @@ -122,8 +121,7 @@ async def _get_jupyterhub_client_id(self, token):
def _get_default_roles_which_does_not_exists(self, managed_roles):
"""Add default roles which_does_not_exists already"""
default_roles_to_add = [
role for role in DEFAULT_ROLES
if role["name"] not in managed_roles
role for role in DEFAULT_ROLES if role["name"] not in managed_roles
]
return default_roles_to_add

Expand Down

0 comments on commit 3b8bfbd

Please sign in to comment.