feat: Use Alembic with async driver (#6258)

Use Alembic with async driver
This commit is contained in:
Christophe Bornet 2025-02-12 00:11:55 +01:00 • committed by GitHub
commit ffbc97bfc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 95 additions and 74 deletions

View file

@ -75,6 +75,12 @@ def blockbuster(request):
.can_block_in("langchain_core/_api/internal.py", "is_caller_internal")
)
for func in ["os.stat", "os.path.abspath", "os.scandir"]:
bb.functions[func].can_block_in("alembic/util/pyfiles.py", "load_python_file")
for func in ["os.path.abspath", "os.scandir"]:
bb.functions[func].can_block_in("alembic/script/base.py", "_load_revisions")
(
bb.functions["os.path.abspath"]
.can_block_in("loguru/_better_exceptions.py", {"_get_lib_dirs", "_format_exception"})