diff --git a/packages/jupyter-ai/jupyter_ai/extension.py b/packages/jupyter-ai/jupyter_ai/extension.py index 6b7077ffe..68628efb3 100644 --- a/packages/jupyter-ai/jupyter_ai/extension.py +++ b/packages/jupyter-ai/jupyter_ai/extension.py @@ -143,7 +143,7 @@ def initialize_settings(self): "/help": help_chat_handler, } - slash_command_pattern = r'^[a-zA-Z0-9_]+$' + slash_command_pattern = r"^[a-zA-Z0-9_]+$" for chat_handler_ep in chat_handler_eps: try: chat_handler = chat_handler_ep.load() @@ -158,7 +158,7 @@ def initialize_settings(self): # Slash IDs may contain only alphanumerics and underscores. slash_id = chat_handler.slash_id - if chat_handler.routing_method == 'slash_command': + if chat_handler.routing_method == "slash_command": if chat_handler.slash_id: # Validate slash ID (/^[A-Za-z0-9_]+$/) if re.match(slash_command_pattern, chat_handler.slash_id):