Skip to content

Commit

Permalink
🔧 pre-commit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Dec 12, 2023
1 parent 89825a1 commit aa44c60
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ repos:
args: [--ignore-missing-imports, --follow-imports=skip]
additional_dependencies: [types-requests]

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
hooks:
Expand Down
2 changes: 1 addition & 1 deletion roadmap.todo
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

[ ] - codeinterpreter-cli (cli chat)

[ ] -
[ ] -
Empty file.
2 changes: 1 addition & 1 deletion src/codeinterpreterapi/parser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import re
from typing import Union, Any
from typing import Any, Union

from langchain.agents import AgentOutputParser
from langchain.chat_models.base import BaseChatModel
Expand Down
6 changes: 3 additions & 3 deletions src/codeinterpreterapi/schema.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import asyncio

from typing import Any
from langchain.schema import AIMessage, HumanMessage
from langchain.pydantic_v1 import BaseModel

from codeboxapi.schema import CodeBoxStatus
from langchain.pydantic_v1 import BaseModel
from langchain.schema import AIMessage, HumanMessage


class File(BaseModel):
Expand Down
4 changes: 2 additions & 2 deletions src/codeinterpreterapi/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import re
import traceback
from io import BytesIO
from typing import Optional, Any, Type
from types import TracebackType
from typing import Any, Optional, Type
from uuid import UUID, uuid4

from codeboxapi import CodeBox # type: ignore
Expand All @@ -14,6 +14,7 @@
ConversationalAgent,
ConversationalChatAgent,
)
from langchain.agents.openai_functions_agent.base import OpenAIFunctionsAgent
from langchain.base_language import BaseLanguageModel
from langchain.callbacks.base import Callbacks
from langchain.chat_models import AzureChatOpenAI, ChatAnthropic, ChatOpenAI
Expand All @@ -27,7 +28,6 @@
from langchain.prompts.chat import MessagesPlaceholder
from langchain.schema import BaseChatMessageHistory
from langchain.tools import BaseTool, StructuredTool
from langchain.agents.openai_functions_agent.base import OpenAIFunctionsAgent

from codeinterpreterapi.chains import (
aget_file_modifications,
Expand Down

0 comments on commit aa44c60

Please sign in to comment.