feat: Bump ruff version to 0.9 (#5666)

* Bump ruff version to 0.9

* Rename some modules for A005 ruff rule
This commit is contained in:
Christophe Bornet 2025-01-15 16:14:43 +01:00 • committed by GitHub
commit da83dbbcb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 137 additions and 136 deletions

View file

@ -58,7 +58,7 @@ async def test_initialize_super_user():
@pytest.mark.benchmark
async def test_get_and_cache_all_types_dict():
"""Benchmark get_and_cache_all_types_dict function."""
from langflow.interface.types import get_and_cache_all_types_dict
from langflow.interface.components import get_and_cache_all_types_dict
settings_service = get_settings_service()
result = await get_and_cache_all_types_dict(settings_service)
@ -70,7 +70,7 @@ async def test_get_and_cache_all_types_dict():
async def test_create_starter_projects():
"""Benchmark creation of starter projects."""
from langflow.initial_setup.setup import create_or_update_starter_projects
from langflow.interface.types import get_and_cache_all_types_dict
from langflow.interface.components import get_and_cache_all_types_dict
from langflow.services.utils import initialize_services
await initialize_services(fix_migration=False)