mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-27 21:59:29 +00:00
Description: add lint docstrings for azure-dynamic-sessions/together modules Issue: #23188 @baskaryan test: ruff check passed. <img width="782" alt="image" src="https://github.com/langchain-ai/langchain/assets/76683249/bf11783d-65b3-4e56-a563-255eae89a3e4"> --------- Co-authored-by: gongwn1 <gongwn1@lenovo.com>
20 lines
493 B
Python
20 lines
493 B
Python
"""This module checks for specific import statements in the codebase."""
|
|
|
|
import sys
|
|
import traceback
|
|
from importlib.machinery import SourceFileLoader
|
|
|
|
if __name__ == "__main__":
|
|
files = sys.argv[1:]
|
|
has_failure = False
|
|
for file in files:
|
|
try:
|
|
SourceFileLoader("x", file).load_module()
|
|
except Exception:
|
|
has_faillure = True
|
|
print(file)
|
|
traceback.print_exc()
|
|
print()
|
|
|
|
sys.exit(1 if has_failure else 0)
|