From 808807bdf7896388c354a57486c7dfca0354805c Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Fri, 10 Jan 2025 16:39:32 +0000 Subject: [PATCH] Remove accidentally added nbqa-black --- .pre-commit-config.yaml | 4 ---- .../agentchat_nested_chats_chess_altmodels.ipynb | 12 ++++++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aeba46e4c3..c9aabcc92e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -83,10 +83,6 @@ repos: notebook/.* | website/.* )$ - - repo: https://github.com/nbQA-dev/nbQA - rev: 1.8.5 - hooks: - - id: nbqa-black - repo: local hooks: diff --git a/notebook/agentchat_nested_chats_chess_altmodels.ipynb b/notebook/agentchat_nested_chats_chess_altmodels.ipynb index b928c00780..2444b86a9b 100644 --- a/notebook/agentchat_nested_chats_chess_altmodels.ipynb +++ b/notebook/agentchat_nested_chats_chess_altmodels.ipynb @@ -119,13 +119,13 @@ "made_move = False\n", "\n", "\n", - "# fmt: off\n", - "def get_legal_moves() -> Annotated[\n", - " str,\n", - " \"Call this tool to list of all legal chess moves on the board, output is a list in UCI format, e.g. e2e4,e7e5,e7e8q.\",\n", - "]:\n", + "def get_legal_moves() -> (\n", + " Annotated[\n", + " str,\n", + " \"Call this tool to list of all legal chess moves on the board, output is a list in UCI format, e.g. e2e4,e7e5,e7e8q.\",\n", + " ]\n", + "):\n", " return \"Possible moves are: \" + \",\".join([str(move) for move in board.legal_moves])\n", - "# fmt: on\n", "\n", "\n", "def make_move(\n",