From 106f3e7e37860cc564cb13f80a2776361066e786 Mon Sep 17 00:00:00 2001 From: ZhangShenao <15201440436@163.com> Date: Sat, 3 Aug 2024 11:44:21 +0800 Subject: [PATCH 1/4] patch[Partners] Unified fix of incorrect variable declarations in all check_imports --- libs/partners/ai21/scripts/check_imports.py | 2 +- libs/partners/airbyte/scripts/check_imports.py | 2 +- libs/partners/anthropic/scripts/check_imports.py | 2 +- libs/partners/azure-dynamic-sessions/scripts/check_imports.py | 2 +- libs/partners/chroma/scripts/check_imports.py | 2 +- libs/partners/couchbase/scripts/check_imports.py | 2 +- libs/partners/exa/scripts/check_imports.py | 2 +- libs/partners/fireworks/scripts/check_imports.py | 2 +- libs/partners/groq/scripts/check_imports.py | 2 +- libs/partners/huggingface/scripts/check_imports.py | 2 +- libs/partners/mistralai/scripts/check_imports.py | 2 +- libs/partners/mongodb/scripts/check_imports.py | 2 +- libs/partners/nomic/scripts/check_imports.py | 2 +- libs/partners/ollama/scripts/check_imports.py | 2 +- libs/partners/openai/scripts/check_imports.py | 2 +- libs/partners/prompty/scripts/check_imports.py | 2 +- libs/partners/qdrant/scripts/check_imports.py | 2 +- libs/partners/together/scripts/check_imports.py | 2 +- libs/partners/unstructured/scripts/check_imports.py | 2 +- libs/partners/voyageai/scripts/check_imports.py | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/libs/partners/ai21/scripts/check_imports.py b/libs/partners/ai21/scripts/check_imports.py index fd21a4975b7f0..ba8de50118c4e 100644 --- a/libs/partners/ai21/scripts/check_imports.py +++ b/libs/partners/ai21/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) traceback.print_exc() print() diff --git a/libs/partners/airbyte/scripts/check_imports.py b/libs/partners/airbyte/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/airbyte/scripts/check_imports.py +++ b/libs/partners/airbyte/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/anthropic/scripts/check_imports.py b/libs/partners/anthropic/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/anthropic/scripts/check_imports.py +++ b/libs/partners/anthropic/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/azure-dynamic-sessions/scripts/check_imports.py b/libs/partners/azure-dynamic-sessions/scripts/check_imports.py index 336c05e5282f2..dc7f5ea8b049f 100644 --- a/libs/partners/azure-dynamic-sessions/scripts/check_imports.py +++ b/libs/partners/azure-dynamic-sessions/scripts/check_imports.py @@ -11,7 +11,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) traceback.print_exc() print() diff --git a/libs/partners/chroma/scripts/check_imports.py b/libs/partners/chroma/scripts/check_imports.py index d1073c0131fc8..a7fcbc5ca6319 100644 --- a/libs/partners/chroma/scripts/check_imports.py +++ b/libs/partners/chroma/scripts/check_imports.py @@ -11,7 +11,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/couchbase/scripts/check_imports.py b/libs/partners/couchbase/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/couchbase/scripts/check_imports.py +++ b/libs/partners/couchbase/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/exa/scripts/check_imports.py b/libs/partners/exa/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/exa/scripts/check_imports.py +++ b/libs/partners/exa/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/fireworks/scripts/check_imports.py b/libs/partners/fireworks/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/fireworks/scripts/check_imports.py +++ b/libs/partners/fireworks/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/groq/scripts/check_imports.py b/libs/partners/groq/scripts/check_imports.py index fd21a4975b7f0..ba8de50118c4e 100644 --- a/libs/partners/groq/scripts/check_imports.py +++ b/libs/partners/groq/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) traceback.print_exc() print() diff --git a/libs/partners/huggingface/scripts/check_imports.py b/libs/partners/huggingface/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/huggingface/scripts/check_imports.py +++ b/libs/partners/huggingface/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/mistralai/scripts/check_imports.py b/libs/partners/mistralai/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/mistralai/scripts/check_imports.py +++ b/libs/partners/mistralai/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/mongodb/scripts/check_imports.py b/libs/partners/mongodb/scripts/check_imports.py index fd21a4975b7f0..ba8de50118c4e 100644 --- a/libs/partners/mongodb/scripts/check_imports.py +++ b/libs/partners/mongodb/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) traceback.print_exc() print() diff --git a/libs/partners/nomic/scripts/check_imports.py b/libs/partners/nomic/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/nomic/scripts/check_imports.py +++ b/libs/partners/nomic/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/ollama/scripts/check_imports.py b/libs/partners/ollama/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/ollama/scripts/check_imports.py +++ b/libs/partners/ollama/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/openai/scripts/check_imports.py b/libs/partners/openai/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/openai/scripts/check_imports.py +++ b/libs/partners/openai/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/prompty/scripts/check_imports.py b/libs/partners/prompty/scripts/check_imports.py index fd21a4975b7f0..ba8de50118c4e 100644 --- a/libs/partners/prompty/scripts/check_imports.py +++ b/libs/partners/prompty/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) traceback.print_exc() print() diff --git a/libs/partners/qdrant/scripts/check_imports.py b/libs/partners/qdrant/scripts/check_imports.py index fd21a4975b7f0..ba8de50118c4e 100644 --- a/libs/partners/qdrant/scripts/check_imports.py +++ b/libs/partners/qdrant/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) traceback.print_exc() print() diff --git a/libs/partners/together/scripts/check_imports.py b/libs/partners/together/scripts/check_imports.py index aa917add8d372..620bc296aa8f2 100644 --- a/libs/partners/together/scripts/check_imports.py +++ b/libs/partners/together/scripts/check_imports.py @@ -11,7 +11,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) traceback.print_exc() print() diff --git a/libs/partners/unstructured/scripts/check_imports.py b/libs/partners/unstructured/scripts/check_imports.py index 365f5fa118da4..58a460c149353 100644 --- a/libs/partners/unstructured/scripts/check_imports.py +++ b/libs/partners/unstructured/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/voyageai/scripts/check_imports.py b/libs/partners/voyageai/scripts/check_imports.py index fd21a4975b7f0..ba8de50118c4e 100644 --- a/libs/partners/voyageai/scripts/check_imports.py +++ b/libs/partners/voyageai/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_faillure = True + has_failure = True print(file) traceback.print_exc() print() From fc6448655ed32060773ae066364a2a22fe081d0c Mon Sep 17 00:00:00 2001 From: ZhangShenao <15201440436@163.com> Date: Sat, 3 Aug 2024 12:01:49 +0800 Subject: [PATCH 2/4] fix imports --- libs/partners/fireworks/scripts/check_imports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/partners/fireworks/scripts/check_imports.py b/libs/partners/fireworks/scripts/check_imports.py index 58a460c149353..365f5fa118da4 100644 --- a/libs/partners/fireworks/scripts/check_imports.py +++ b/libs/partners/fireworks/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_failure = True + has_faillure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 From c0eb04a5c28523b84e332dd59c7da476cae3d5db Mon Sep 17 00:00:00 2001 From: ZhangShenao <15201440436@163.com> Date: Sat, 3 Aug 2024 12:19:09 +0800 Subject: [PATCH 3/4] fix imports --- libs/partners/unstructured/scripts/check_imports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/partners/unstructured/scripts/check_imports.py b/libs/partners/unstructured/scripts/check_imports.py index 58a460c149353..365f5fa118da4 100644 --- a/libs/partners/unstructured/scripts/check_imports.py +++ b/libs/partners/unstructured/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_failure = True + has_faillure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 From 939094cd175294bf1b5f6bb2394c9fe41e5959fa Mon Sep 17 00:00:00 2001 From: ZhangShenao <15201440436@163.com> Date: Sat, 3 Aug 2024 12:38:57 +0800 Subject: [PATCH 4/4] fix check imports --- libs/partners/huggingface/scripts/check_imports.py | 2 +- libs/partners/prompty/scripts/check_imports.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/partners/huggingface/scripts/check_imports.py b/libs/partners/huggingface/scripts/check_imports.py index 58a460c149353..365f5fa118da4 100644 --- a/libs/partners/huggingface/scripts/check_imports.py +++ b/libs/partners/huggingface/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_failure = True + has_faillure = True print(file) # noqa: T201 traceback.print_exc() print() # noqa: T201 diff --git a/libs/partners/prompty/scripts/check_imports.py b/libs/partners/prompty/scripts/check_imports.py index ba8de50118c4e..fd21a4975b7f0 100644 --- a/libs/partners/prompty/scripts/check_imports.py +++ b/libs/partners/prompty/scripts/check_imports.py @@ -9,7 +9,7 @@ try: SourceFileLoader("x", file).load_module() except Exception: - has_failure = True + has_faillure = True print(file) traceback.print_exc() print()