@devries-cameron20 / composio Mirror · read-only / commits / fafaa55f8
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 21:00 UTC

fix(py): ruff format the new files + regenerate uv.lock for 0.14.0

Two CI / review issues on #3401: 1. "Lint and Format Check" failed — `ruff format --check` flagged `composio/core/models/tool_router_session.py` and `tests/test_connected_accounts.py`. Local `nox -s chk` only runs `ruff check` (lint), not `ruff format --check`, so the gap slipped through. Ran `ruff format` on both. 2. Bugbot caught uv.lock drift — pyproject.toml bumped to 0.14.0 but uv.lock still recorded 0.13.0 from when the dep bump commit was created. Ran `uv lock` to regenerate; the lockfile now records 0.14.0. No behaviour changes — formatting + lockfile sync only. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

venkat82 committed May 12, 2026 at 00:30 UTC fafaa55f88a56ab719128bd9d3b8969546f45b76
3 files changed +7 -11
python/composio/core/models/tool_router_session.py
+3 -1
@@ -540,7 +540,9 @@ class ToolRouterSession(t.Generic[TTool, TToolCollection]):
540 callback_url: t.Optional[str] = None,
541 alias: t.Optional[str] = None,
542 account_type: t.Optional[t.Literal["PRIVATE", "SHARED"]] = None,
543 - acl_config_for_shared: t.Optional[session_link_params.ACLConfigForShared] = None,
543 + acl_config_for_shared: t.Optional[
544 + session_link_params.ACLConfigForShared
545 + ] = None,
546 ) -> ConnectionRequest:
547 """
548 Authorize a toolkit for the user and get a connection request.
python/tests/test_connected_accounts.py
+3 -9
@@ -598,9 +598,7 @@ class TestConnectedAccountsAcl:
598 "not_allowed_user_ids": ["user_bob"],
599 }
600
601 - def test_link_omits_acl_when_not_provided(
602 - self, connected_accounts, mock_client
603 - ):
601 + def test_link_omits_acl_when_not_provided(self, connected_accounts, mock_client):
602 connected_accounts.link(
603 user_id="user_creator",
604 auth_config_id="auth_config_123",
@@ -626,9 +624,7 @@ class TestConnectedAccountsAcl:
624 "allowed_user_ids": ["user_alice"]
625 }
626
629 - def test_link_preserves_explicit_empty_lists(
630 - self, connected_accounts, mock_client
631 - ):
627 + def test_link_preserves_explicit_empty_lists(self, connected_accounts, mock_client):
628 """An empty list is meaningful (clear the allow/deny list)."""
629 connected_accounts.link(
630 user_id="user_creator",
@@ -676,9 +672,7 @@ class TestConnectedAccountsAcl:
672
673 # -- update_acl() body construction + mapper ----------------------------
674
679 - def test_update_acl_serializes_nested_body(
680 - self, connected_accounts, mock_client
681 - ):
675 + def test_update_acl_serializes_nested_body(self, connected_accounts, mock_client):
676 response = Mock()
677 response.id = "ca_abc"
678 response.status = "ACTIVE"
uv.lock
+1 -1
@@ -591,7 +591,7 @@ wheels = [
591
592 [[package]]
593 name = "composio"
594 -version = "0.13.0"
594 +version = "0.14.0"
595 source = { virtual = "python" }
596 dependencies = [
597 { name = "composio-client" },