-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add typing_extensions dep * Fix for langchain >= 0.3 (#19) * Support for 3.13 (#20) * Bump version * Fix for mypy dataclass inheritance
- Loading branch information
Showing
9 changed files
with
87 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from __future__ import annotations | ||
|
||
import pathlib | ||
import sys | ||
|
||
pytest_plugins = [ | ||
'pytest_asyncio', | ||
'pytest_recording', | ||
'yandex_cloud_ml_sdk._testing.plugin', | ||
] | ||
|
||
langchain_paths = [ | ||
'examples/langchain/', | ||
'tests/langchain_', | ||
'src/yandex_cloud_ml_sdk/_types/langchain.py', | ||
'src/yandex_cloud_ml_sdk/_utils/langchain.py', | ||
'src/yandex_cloud_ml_sdk/_models/completions/langchain.py', | ||
] | ||
|
||
def pytest_ignore_collect(collection_path, path, config): # pylint: disable=unused-argument | ||
if sys.version_info > (3, 9): | ||
return None | ||
|
||
base_path = pathlib.Path(__file__).parent | ||
for suffix in langchain_paths: | ||
path_to_ignore = base_path / suffix | ||
if str(collection_path).startswith(str(path_to_ignore)): | ||
return True | ||
|
||
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters