(code quality) run ruff rule to ban unused imports (#7313)

* remove unused imports

* fix AmazonConverseConfig

* fix test

* fix import

* ruff check fixes

* test fixes

* fix testing

* fix imports
This commit is contained in:
Ishaan Jaff 2024-12-19 12:33:42 -08:00 committed by GitHub
parent 5e344497ce
commit c7f14e936a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
347 changed files with 5473 additions and 7207 deletions

View file

@ -1,14 +1,9 @@
from fastapi import FastAPI
import uvicorn
from memory_profiler import profile, memory_usage
from memory_profiler import profile
import os
import traceback
import asyncio
import pytest
import litellm
from litellm import Router
from concurrent.futures import ThreadPoolExecutor
from collections import defaultdict
from dotenv import load_dotenv
import uuid

View file

@ -1,17 +1,16 @@
#### What this tests ####
from memory_profiler import profile, memory_usage
import sys, os, time
import traceback, asyncio
import pytest
from memory_profiler import profile
import sys
import os
import time
import asyncio
sys.path.insert(
0, os.path.abspath("../..")
) # Adds the parent directory to the system path
import litellm
from litellm import Router
from concurrent.futures import ThreadPoolExecutor
from collections import defaultdict
from dotenv import load_dotenv
import uuid

View file

@ -1,17 +1,16 @@
#### What this tests ####
from memory_profiler import profile, memory_usage
import sys, os, time
import traceback, asyncio
import pytest
from memory_profiler import profile
import sys
import os
import time
import asyncio
sys.path.insert(
0, os.path.abspath("../..")
) # Adds the parent directory to the system path
import litellm
from litellm import Router
from concurrent.futures import ThreadPoolExecutor
from collections import defaultdict
from dotenv import load_dotenv
import uuid

View file

@ -1,17 +1,14 @@
import sys, os
import traceback
import sys
import os
from dotenv import load_dotenv
import copy
load_dotenv()
sys.path.insert(
0, os.path.abspath("../..")
) # Adds the parent directory to the system path
import asyncio
from litellm import Router, Timeout
from litellm import Timeout
import time
from litellm.caching.caching import Cache
import litellm
import openai
### Test just calling AsyncAzureOpenAI

View file

@ -1,7 +1,6 @@
import sys, os
import traceback
import sys
import os
from dotenv import load_dotenv
import copy
load_dotenv()
sys.path.insert(

View file

@ -1,7 +1,6 @@
import sys, os
import traceback
import sys
import os
from dotenv import load_dotenv
import copy
load_dotenv()
sys.path.insert(