From 6d2fc87584bfc4b82ef077b0cb7b78e8670ef6b9 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Mon, 28 Jul 2025 10:32:02 -0400 Subject: [PATCH] feat: update all check_imports docstrings --- libs/partners/anthropic/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/chroma/scripts/check_imports.py | 14 +++++++++++++- libs/partners/deepseek/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/exa/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/fireworks/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/groq/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/huggingface/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/mistralai/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/nomic/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/ollama/scripts/check_imports.py | 14 +++++++++++++- libs/partners/openai/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/perplexity/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/prompty/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/qdrant/scripts/check_imports.py | 14 ++++++++++++++ libs/partners/xai/scripts/check_imports.py | 14 +++++++++++++- libs/standard-tests/scripts/check_imports.py | 14 ++++++++++++++ 16 files changed, 221 insertions(+), 3 deletions(-) diff --git a/libs/partners/anthropic/scripts/check_imports.py b/libs/partners/anthropic/scripts/check_imports.py index 58a460c1493..f9b0d8cf231 100644 --- a/libs/partners/anthropic/scripts/check_imports.py +++ b/libs/partners/anthropic/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/chroma/scripts/check_imports.py b/libs/partners/chroma/scripts/check_imports.py index b850913e53e..dc1f613d4da 100644 --- a/libs/partners/chroma/scripts/check_imports.py +++ b/libs/partners/chroma/scripts/check_imports.py @@ -1,4 +1,16 @@ -"""This module checks if the given python files can be imported without error.""" +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" import sys import traceback diff --git a/libs/partners/deepseek/scripts/check_imports.py b/libs/partners/deepseek/scripts/check_imports.py index 724644fce53..dc1f613d4da 100644 --- a/libs/partners/deepseek/scripts/check_imports.py +++ b/libs/partners/deepseek/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/exa/scripts/check_imports.py b/libs/partners/exa/scripts/check_imports.py index 58a460c1493..f9b0d8cf231 100644 --- a/libs/partners/exa/scripts/check_imports.py +++ b/libs/partners/exa/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/fireworks/scripts/check_imports.py b/libs/partners/fireworks/scripts/check_imports.py index 58a460c1493..f9b0d8cf231 100644 --- a/libs/partners/fireworks/scripts/check_imports.py +++ b/libs/partners/fireworks/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/groq/scripts/check_imports.py b/libs/partners/groq/scripts/check_imports.py index ec3fc6e95f5..2fdb373949c 100644 --- a/libs/partners/groq/scripts/check_imports.py +++ b/libs/partners/groq/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/huggingface/scripts/check_imports.py b/libs/partners/huggingface/scripts/check_imports.py index 58a460c1493..f9b0d8cf231 100644 --- a/libs/partners/huggingface/scripts/check_imports.py +++ b/libs/partners/huggingface/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/mistralai/scripts/check_imports.py b/libs/partners/mistralai/scripts/check_imports.py index 58a460c1493..f9b0d8cf231 100644 --- a/libs/partners/mistralai/scripts/check_imports.py +++ b/libs/partners/mistralai/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/nomic/scripts/check_imports.py b/libs/partners/nomic/scripts/check_imports.py index 58a460c1493..f9b0d8cf231 100644 --- a/libs/partners/nomic/scripts/check_imports.py +++ b/libs/partners/nomic/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/ollama/scripts/check_imports.py b/libs/partners/ollama/scripts/check_imports.py index 64b1b383092..f9b0d8cf231 100644 --- a/libs/partners/ollama/scripts/check_imports.py +++ b/libs/partners/ollama/scripts/check_imports.py @@ -1,4 +1,16 @@ -"""load multiple Python files specified as command line arguments.""" +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" import sys import traceback diff --git a/libs/partners/openai/scripts/check_imports.py b/libs/partners/openai/scripts/check_imports.py index 58a460c1493..f9b0d8cf231 100644 --- a/libs/partners/openai/scripts/check_imports.py +++ b/libs/partners/openai/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/perplexity/scripts/check_imports.py b/libs/partners/perplexity/scripts/check_imports.py index 58a460c1493..f9b0d8cf231 100644 --- a/libs/partners/perplexity/scripts/check_imports.py +++ b/libs/partners/perplexity/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/prompty/scripts/check_imports.py b/libs/partners/prompty/scripts/check_imports.py index ec3fc6e95f5..2fdb373949c 100644 --- a/libs/partners/prompty/scripts/check_imports.py +++ b/libs/partners/prompty/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/qdrant/scripts/check_imports.py b/libs/partners/qdrant/scripts/check_imports.py index ec3fc6e95f5..2fdb373949c 100644 --- a/libs/partners/qdrant/scripts/check_imports.py +++ b/libs/partners/qdrant/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import sys import traceback from importlib.machinery import SourceFileLoader diff --git a/libs/partners/xai/scripts/check_imports.py b/libs/partners/xai/scripts/check_imports.py index 620bc296aa8..00c42b1d9ee 100644 --- a/libs/partners/xai/scripts/check_imports.py +++ b/libs/partners/xai/scripts/check_imports.py @@ -1,4 +1,16 @@ -"""This module checks if the given python files can be imported without error.""" +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" import sys import traceback diff --git a/libs/standard-tests/scripts/check_imports.py b/libs/standard-tests/scripts/check_imports.py index 825bea5b487..864072e654a 100644 --- a/libs/standard-tests/scripts/check_imports.py +++ b/libs/standard-tests/scripts/check_imports.py @@ -1,3 +1,17 @@ +"""Import validation script. + +Validates that Python files can be imported without errors by dynamically +loading each file as a module. This is crucial for ensuring: + +1. All dependencies are properly installed and available +2. Module-level code executes without syntax or runtime errors +3. Import statements are valid and don't create circular dependencies +4. The code structure follows Python import conventions + +Typically run in CI/CD to catch import problems before deployment, ensuring that +all modules can be successfully imported in production environments. +""" + import random import string import sys