AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
chore(backend/deps-dev): bump the development-dependencies group across 1 directory with 7 updates (#15242)
dependabot[bot]3b9798e5aae8
diff --git a/.github/workflows/platform-backend-ci.yml b/.github/workflows/platform-backend-ci.ymlindex d5c779b56f..04a3d1a37a 100644--- a/.github/workflows/platform-backend-ci.yml+++ b/.github/workflows/platform-backend-ci.yml@@ -215,6 +215,10 @@ jobs:- name: Run Pyrightrun: poetry run pyright --pythonversion ${{ matrix.python-version }}+ env:+ # Pyright 1.1.414 sits at Node's default heap limit on this codebase+ # and dies with "heap out of memory" on some runs.+ NODE_OPTIONS: --max-old-space-size=8192env:CI: truediff --git a/autogpt_platform/backend/backend/copilot/bot/adapters/teams/auth.py b/autogpt_platform/backend/backend/copilot/bot/adapters/teams/auth.pyindex 81ce30f88c..57b616a24f 100644--- a/autogpt_platform/backend/backend/copilot/bot/adapters/teams/auth.py+++ b/autogpt_platform/backend/backend/copilot/bot/adapters/teams/auth.py@@ -294,7 +294,10 @@ async def ensure_attachment_host_is_external(url: str) -> None:except socket.gaierror as exc:raise ValueError(f"attachment host {host!r} does not resolve") from excaddresses = {info[4][0] for info in infos}- if not addresses or any(_is_internal_host(address) for address in addresses):+ if not addresses or any(+ not isinstance(address, str) or _is_internal_host(address)+ for address in addresses+ ):raise ValueError(f"attachment host {host!r} resolves inside our network")diff --git a/autogpt_platform/backend/backend/data/push_sender.py b/autogpt_platform/backend/backend/data/push_sender.pyindex a721639b92..fcff79b853 100644--- a/autogpt_platform/backend/backend/data/push_sender.py+++ b/autogpt_platform/backend/backend/data/push_sender.py@@ -23,7 +23,7 @@ DEBOUNCE_SECONDS = 5.0# Per-user debounce timestamps, bounded + auto-evicted so the process doesn't# accumulate one entry per user forever. Process-local — ineffective across# multiple WS replicas; acceptable since debounce is a best-effort UX nicety.-_user_last_push: TTLCache[str, float] = TTLCache(maxsize=10_000, ttl=DEBOUNCE_SECONDS)+_user_last_push = TTLCache[str, float](maxsize=10_000, ttl=DEBOUNCE_SECONDS)# Fields to forward from the notification payload to the push message_FORWARDED_FIELDS = ("session_id", "step", "status", "graph_id", "execution_id")diff --git a/autogpt_platform/backend/backend/integrations/managed_credentials.py b/autogpt_platform/backend/backend/integrations/managed_credentials.pyindex 8ca2f2ff93..364d24c16a 100644--- a/autogpt_platform/backend/backend/integrations/managed_credentials.py+++ b/autogpt_platform/backend/backend/integrations/managed_credentials.py@@ -149,7 +149,7 @@ _PROVIDERS: dict[str, ManagedCredentialProvider] = {}# Avoids redundant DB checks on every GET /credentials call.# maxsize caps memory; TTL re-checks periodically (e.g. when new providers# are added). ~100K entries ≈ 4-8 MB.-_provisioned_users: TTLCache[str, bool] = TTLCache(maxsize=100_000, ttl=3600)+_provisioned_users = TTLCache[str, bool](maxsize=100_000, ttl=3600)def register_managed_provider(provider: ManagedCredentialProvider) -> None:diff --git a/autogpt_platform/backend/backend/util/request.py b/autogpt_platform/backend/backend/util/request.pyindex 5f7599745a..168579bc60 100644--- a/autogpt_platform/backend/backend/util/request.py+++ b/autogpt_platform/backend/backend/util/request.py@@ -177,7 +177,9 @@ async def _resolve_host(hostname: str) -> list[str]:except socket.gaierror:raise ValueError(f"Unable to resolve IP address for hostname {hostname}")- ip_list = [info[4][0] for info in infos]+ # AF_INET/AF_INET6 sockaddrs start with the address string; anything else is not+ # an IP we could validate or connect to.+ ip_list = [addr for info in infos if isinstance(addr := info[4][0], str)]ipv4 = [ip for ip in ip_list if ":" not in ip]ipv6 = [ip for ip in ip_list if ":" in ip]ip_addresses = ipv4 + ipv6diff --git a/autogpt_platform/backend/backend/util/service.py b/autogpt_platform/backend/backend/util/service.pyindex 3394b6c0ae..20b3ef6f2b 100644--- a/autogpt_platform/backend/backend/util/service.py+++ b/autogpt_platform/backend/backend/util/service.py@@ -625,24 +625,28 @@ def get_service_client(if not request_retry:return fn- # Use preconfigured retry decorator for service communication- return create_retry_decorator(- max_attempts=api_comm_retry,- max_wait=api_comm_max_wait,- context="Service communication",- exclude_exceptions=(- # Don't retry these specific exceptions that won't be fixed by retrying- ValueError, # Invalid input/parameters- DataError, # Prisma data integrity errors (foreign key, unique constraints)- UniqueViolationError, # Unique constraint violations- KeyError, # Missing required data- TypeError, # Wrong data types- AttributeError, # Missing attributes- asyncio.CancelledError, # Task was cancelled- concurrent.futures.CancelledError, # Future was cancelled- HTTPClientError, # HTTP 4xx client errors - don't retry- ),- )(fn)+ # Use preconfigured retry decorator for service communication. It keeps+ # fn's sync/async shape, which its overloads can't express.+ return cast(+ Callable[..., R],+ create_retry_decorator(+ max_attempts=api_comm_retry,+ max_wait=api_comm_max_wait,+ context="Service communication",+ exclude_exceptions=(+ # Don't retry these specific exceptions that won't be fixed by retrying+ ValueError, # Invalid input/parameters+ DataError, # Prisma data integrity errors (foreign key, unique constraints)+ UniqueViolationError, # Unique constraint violations+ KeyError, # Missing required data+ TypeError, # Wrong data types+ AttributeError, # Missing attributes+ asyncio.CancelledError, # Task was cancelled+ concurrent.futures.CancelledError, # Future was cancelled+ HTTPClientError, # HTTP 4xx client errors - don't retry+ ),+ )(fn),+ )class DynamicClient:def __init__(self) -> None:diff --git a/autogpt_platform/backend/poetry.lock b/autogpt_platform/backend/poetry.lockindex d38d9d7249..a042b5989b 100644--- a/autogpt_platform/backend/poetry.lock+++ b/autogpt_platform/backend/poetry.lock@@ -77,14 +77,14 @@ files = [[[package]]name = "aiohappyeyeballs"-version = "2.6.1"+version = "2.7.1"description = "Happy Eyeballs for asyncio"optional = false-python-versions = ">=3.9"+python-versions = ">=3.10"groups = ["main", "dev"]files = [- {file = "aiohappyeyeballs-2.6.1-py3-none-any.whl", hash = "sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8"},- {file = "aiohappyeyeballs-2.6.1.tar.gz", hash = "sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558"},+ {file = "aiohappyeyeballs-2.7.1-py3-none-any.whl", hash = "sha256:9243213661e29250eb41368e5daa826fc017156c3b8a11440826b2e3ed376472"},+ {file = "aiohappyeyeballs-2.7.1.tar.gz", hash = "sha256:065665c041c42a5938ed220bdcd7230f22527fbec085e1853d2402c8a3615d9d"},][[package]]@@ -1605,14 +1605,14 @@ tests = ["coverage", "coveralls", "dill", "mock", "nose"][[package]]name = "faker"-version = "40.39.0"+version = "40.40.0"description = "Faker is a Python package that generates fake data for you."optional = falsepython-versions = ">=3.10"groups = ["dev"]files = [- {file = "faker-40.39.0-py3-none-any.whl", hash = "sha256:c4c7ec2cddfaf602c5a8a2c960614946aa8c161250bd9d49a8846cd24d1ef028"},- {file = "faker-40.39.0.tar.gz", hash = "sha256:52799ad96fcf92aab2fc96a9e03869bbf1a634300f7cd91c38dbfd51f639f6fa"},+ {file = "faker-40.40.0-py3-none-any.whl", hash = "sha256:cd45ebdd1363f92a45740ac49945e49fa18f7e10771884a83c796a235550d7b7"},+ {file = "faker-40.40.0.tar.gz", hash = "sha256:803ee7f920679e7367c3f7b7f97752f5a9780aa5566c71723fbe57d591beafe1"},][package.dependencies]@@ -4913,14 +4913,14 @@ testing = ["coverage", "pytest", "pytest-benchmark"][[package]]name = "poethepoet"-version = "0.41.0"+version = "0.48.0"description = "A task runner that works well with poetry and uv."optional = falsepython-versions = ">=3.10"groups = ["dev"]files = [- {file = "poethepoet-0.41.0-py3-none-any.whl", hash = "sha256:4bab9fd8271664c5d21407e8f12827daeb6aa484dc6cc7620f0c3b4e62b42ee4"},- {file = "poethepoet-0.41.0.tar.gz", hash = "sha256:dcaad621dc061f6a90b17d091bebb9ca043d67bfe9bd6aa4185aea3ebf7ff3e6"},+ {file = "poethepoet-0.48.0-py3-none-any.whl", hash = "sha256:98da6096d060f49b8d84034770265863fb7dc92a40233b7694b9d216ac68737d"},+ {file = "poethepoet-0.48.0.tar.gz", hash = "sha256:a06f49d244fadfc2e2e7faa78b54e64a9694727e4ce1d50e08f23cea3ded74f1"},][package.dependencies]@@ -5087,14 +5087,14 @@ test = ["betamax (>=0.8,<0.9)", "pytest (>=2.7.3)", "urllib3 (==1.26.*)"][[package]]name = "pre-commit"-version = "4.5.1"+version = "4.6.2"description = "A framework for managing and maintaining multi-language pre-commit hooks."optional = falsepython-versions = ">=3.10"groups = ["dev"]files = [- {file = "pre_commit-4.5.1-py2.py3-none-any.whl", hash = "sha256:3b3afd891e97337708c1674210f8eba659b52a38ea5f822ff142d10786221f77"},- {file = "pre_commit-4.5.1.tar.gz", hash = "sha256:eb545fcff725875197837263e977ea257a402056661f09dae08e4b149b030a61"},+ {file = "pre_commit-4.6.2-py2.py3-none-any.whl", hash = "sha256:e2dde9a75d3bce11bd3831c26d134df00a2803c1d818be6a0383c3dcda25dc4e"},+ {file = "pre_commit-4.6.2.tar.gz", hash = "sha256:8f5d7bfb021ecdbcd9d49d89847082dd24172ccde534390081a679ad046e2441"},][package.dependencies]@@ -6192,14 +6192,14 @@ files = [[[package]]name = "pyright"-version = "1.1.408"+version = "1.1.414"description = "Command line wrapper for pyright"optional = falsepython-versions = ">=3.7"groups = ["dev"]files = [- {file = "pyright-1.1.408-py3-none-any.whl", hash = "sha256:090b32865f4fdb1e0e6cd82bf5618480d48eecd2eb2e70f960982a3d9a4c17c1"},- {file = "pyright-1.1.408.tar.gz", hash = "sha256:f28f2321f96852fa50b5829ea492f6adb0e6954568d1caa3f3af3a5f555eb684"},+ {file = "pyright-1.1.414-py3-none-any.whl", hash = "sha256:2a6b4b3298c9eec174c5ed83bd338de6eee82df2992f3e1930e6199d381be36f"},+ {file = "pyright-1.1.414.tar.gz", hash = "sha256:523c0a97c60da6333234955c277730c9cf4f5bd6d5399e7b7d2b0fc5d3599524"},][package.dependencies]@@ -6278,14 +6278,14 @@ testing = ["process-tests", "pytest-xdist", "virtualenv"][[package]]name = "pytest-mock"-version = "3.15.1"+version = "3.16.0"description = "Thin-wrapper around the mock package for easier use with pytest"optional = false-python-versions = ">=3.9"+python-versions = ">=3.10"groups = ["dev"]files = [- {file = "pytest_mock-3.15.1-py3-none-any.whl", hash = "sha256:0a25e2eb88fe5168d535041d09a4529a188176ae608a6d249ee65abc0949630d"},- {file = "pytest_mock-3.15.1.tar.gz", hash = "sha256:1849a238f6f396da19762269de72cb1814ab44416fa73a8686deac10b0d87a0f"},+ {file = "pytest_mock-3.16.0-py3-none-any.whl", hash = "sha256:007cfeb257801d88d9c0b2a7b5a15a15e73b71968dfd72e7bf8c4a2f8393aec8"},+ {file = "pytest_mock-3.16.0.tar.gz", hash = "sha256:5a8395528b8f498205f3718f575228d0edaed7425fff638f87d1a6c3e0383636"},][package.dependencies]@@ -7102,30 +7102,30 @@ pyasn1 = ">=0.1.3"[[package]]name = "ruff"-version = "0.15.0"+version = "0.16.10"description = "An extremely fast Python linter and code formatter, written in Rust."optional = falsepython-versions = ">=3.7"groups = ["dev"]files = [- {file = "ruff-0.15.0-py3-none-linux_armv6l.whl", hash = "sha256:aac4ebaa612a82b23d45964586f24ae9bc23ca101919f5590bdb368d74ad5455"},- {file = "ruff-0.15.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:dcd4be7cc75cfbbca24a98d04d0b9b36a270d0833241f776b788d59f4142b14d"},- {file = "ruff-0.15.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d747e3319b2bce179c7c1eaad3d884dc0a199b5f4d5187620530adf9105268ce"},- {file = "ruff-0.15.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:650bd9c56ae03102c51a5e4b554d74d825ff3abe4db22b90fd32d816c2e90621"},- {file = "ruff-0.15.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a6664b7eac559e3048223a2da77769c2f92b43a6dfd4720cef42654299a599c9"},- {file = "ruff-0.15.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f811f97b0f092b35320d1556f3353bf238763420ade5d9e62ebd2b73f2ff179"},- {file = "ruff-0.15.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:761ec0a66680fab6454236635a39abaf14198818c8cdf691e036f4bc0f406b2d"},- {file = "ruff-0.15.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:940f11c2604d317e797b289f4f9f3fa5555ffe4fb574b55ed006c3d9b6f0eb78"},- {file = "ruff-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bcbca3d40558789126da91d7ef9a7c87772ee107033db7191edefa34e2c7f1b4"},- {file = "ruff-0.15.0-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:9a121a96db1d75fa3eb39c4539e607f628920dd72ff1f7c5ee4f1b768ac62d6e"},- {file = "ruff-0.15.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:5298d518e493061f2eabd4abd067c7e4fb89e2f63291c94332e35631c07c3662"},- {file = "ruff-0.15.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:afb6e603d6375ff0d6b0cee563fa21ab570fd15e65c852cb24922cef25050cf1"},- {file = "ruff-0.15.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:77e515f6b15f828b94dc17d2b4ace334c9ddb7d9468c54b2f9ed2b9c1593ef16"},- {file = "ruff-0.15.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:6f6e80850a01eb13b3e42ee0ebdf6e4497151b48c35051aab51c101266d187a3"},- {file = "ruff-0.15.0-py3-none-win32.whl", hash = "sha256:238a717ef803e501b6d51e0bdd0d2c6e8513fe9eec14002445134d3907cd46c3"},- {file = "ruff-0.15.0-py3-none-win_amd64.whl", hash = "sha256:dd5e4d3301dc01de614da3cdffc33d4b1b96fb89e45721f1598e5532ccf78b18"},- {file = "ruff-0.15.0-py3-none-win_arm64.whl", hash = "sha256:c480d632cc0ca3f0727acac8b7d053542d9e114a462a145d0b00e7cd658c515a"},- {file = "ruff-0.15.0.tar.gz", hash = "sha256:6bdea47cdbea30d40f8f8d7d69c0854ba7c15420ec75a26f463290949d7f7e9a"},+ {file = "ruff-0.16.10-py3-none-linux_armv6l.whl", hash = "sha256:488b0fe3f3574210e5cf80d9f59b9e3ab17a127a8155de3f307b392589cfb511"},+ {file = "ruff-0.16.10-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:e748ff95c934c4e978783b8e687bc174e7bd84e8ad24e3243e1ecfcda5e0282d"},+ {file = "ruff-0.16.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3031a4a2e8e7b8a46f70be45f198c35a11ece509a94b80334d8d397a33c67550"},+ {file = "ruff-0.16.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:494401c86df4c4c25f69b9419605d944467ee98c42fb6ad405ef4fa40b8fb67d"},+ {file = "ruff-0.16.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d203abc0ff2b773ee33d00ab8df0bb67046fbc7c07b119332f08b9b345cf8221"},+ {file = "ruff-0.16.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd83d1235a5258d318477bc5b576303974cbdef5df0c01a1bff14efcc23bd12a"},+ {file = "ruff-0.16.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bc2610fb269fa56dd8a68669ae470fa6272902668c0fc2ebc3aa112b2633d5b8"},+ {file = "ruff-0.16.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3e70175e29cc94c26ea296c80e470180b744b7419026898e58f520c6ab32578e"},+ {file = "ruff-0.16.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f33f43a864a8483eebd160e713336c8bab02c934feaff0a33cf5ccb41546d09a"},+ {file = "ruff-0.16.10-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:1dfc6f0088149fb6a362c1c446bcbb3fd2157b3852fe2fa68409276eab9ad9b3"},+ {file = "ruff-0.16.10-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:6553498afc35f580f036030795810b9e6bcea31604b0fd9e8d352795473042e3"},+ {file = "ruff-0.16.10-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:a3b8471dea115d37f123882be852bed13403746d3a76c11de4a19ec5f9ff5a03"},+ {file = "ruff-0.16.10-py3-none-musllinux_1_2_i686.whl", hash = "sha256:92e59a70bcbd9d3a5483656da906ec28edfdacfce00afd99edb8b4e9d15644be"},+ {file = "ruff-0.16.10-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:7ae7375f803b5520dc9f546bed7e3a0acb70b91812e9bb4b19927de22f25b77d"},+ {file = "ruff-0.16.10-py3-none-win32.whl", hash = "sha256:2a12e01cb9156c10c466f63b46eaae5ecea28dfbd21b5836353ae498e7d1349a"},+ {file = "ruff-0.16.10-py3-none-win_amd64.whl", hash = "sha256:97f2015c92aa97105b0eab19eb5d224884399281cfc5da86a92db4ab5e7fb2ca"},+ {file = "ruff-0.16.10-py3-none-win_arm64.whl", hash = "sha256:25a65fe998c4e6861ec079ada5826a2fc605e6cbccbe9dcd7fac1f54e791621b"},+ {file = "ruff-0.16.10.tar.gz", hash = "sha256:eff4728c4eaae93f0955cd264d24b2ab348e74bf59986ccf282ba6dc16b3b017"},][[package]]@@ -8989,4 +8989,4 @@ cffi = ["cffi (>=1.17,<2.0) ; platform_python_implementation != \"PyPy\" and pyt[metadata]lock-version = "2.1"python-versions = ">=3.10,<3.14"-content-hash = "383b24770df895281c3dc78100940d1c6220425190fff459738c3fec2a7f5b82"+content-hash = "692155bf39b608b2af99c2ceb621ac69b91ee334bf79162ef6fa5077b757e6a8"diff --git a/autogpt_platform/backend/pyproject.toml b/autogpt_platform/backend/pyproject.tomlindex b3484611a3..ee683c9e94 100644--- a/autogpt_platform/backend/pyproject.toml+++ b/autogpt_platform/backend/pyproject.toml@@ -116,13 +116,13 @@ black = "^24.10.0"faker = ">=38.2,<41.0"httpx = "^0.28.1"isort = "^5.13.2"-poethepoet = "^0.41.0"+poethepoet = ">=0.41,<0.49"pre-commit = "^4.4.0"pyright = "^1.1.407"pytest-cov = "^7.1.0"pytest-mock = "^3.15.1"pytest-watcher = "^0.6.3"-ruff = "^0.15.0"+ruff = ">=0.15,<0.17"# NOTE: please insert new dependencies in their alphabetical location[build-system]