From 1a8163a69f961f7e1abc1589433fca45187b8862 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 02:13:42 +0000 Subject: [PATCH 1/2] chore(deps): update redis requirement in the python-production group Updates the requirements on [redis](https://github.com/redis/redis-py) to permit the latest version. Updates `redis` to 8.1.0 - [Release notes](https://github.com/redis/redis-py/releases) - [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES) - [Commits](https://github.com/redis/redis-py/compare/v7.4.0...v8.1.0) --- updated-dependencies: - dependency-name: redis dependency-version: 8.1.0 dependency-type: direct:production dependency-group: python-production ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9d425ce..5be31eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ # Avoid celery[redis] → kombu[redis] pin redis<6.5; transport is in kombu. # Cap <8 until kombu officially supports redis-py 8 (RESP3 defaults). "celery>=5.6", - "redis>=7.4,<8", + "redis>=7.4,<9", "sqlalchemy>=2.0.51", "alembic>=1.19", "psycopg2-binary>=2.9.12", From 52f930280e06862573ba00aecadc3a617d63a8d0 Mon Sep 17 00:00:00 2001 From: kotru21 <88907641+kotru21@users.noreply.github.com> Date: Tue, 11 Aug 2026 12:01:38 +0300 Subject: [PATCH 2/2] fix: remove unused redis type ignore after redis-py 8 Co-authored-by: Cursor --- pyproject.toml | 2 +- src/analyzer/api/rate_limit.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5be31eb..4a321f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ dependencies = [ "tree-sitter-javascript>=0.25", "tree-sitter-typescript>=0.23.2", # Avoid celery[redis] → kombu[redis] pin redis<6.5; transport is in kombu. - # Cap <8 until kombu officially supports redis-py 8 (RESP3 defaults). + # Allow redis-py 8.x; keep <9 until we validate the next major. "celery>=5.6", "redis>=7.4,<9", "sqlalchemy>=2.0.51", diff --git a/src/analyzer/api/rate_limit.py b/src/analyzer/api/rate_limit.py index 842e5ec..f787753 100644 --- a/src/analyzer/api/rate_limit.py +++ b/src/analyzer/api/rate_limit.py @@ -63,7 +63,7 @@ def rate_limit_analyze( redis_key = f"analyzer:ratelimit:{bucket}:{path}" try: count_raw = redis_client.eval(_INCR_EXPIRE_LUA, 1, redis_key, 60) - count = int(count_raw) # type: ignore[arg-type] + count = int(count_raw) if count > limit: raise HTTPException(status_code=429, detail="rate limit exceeded") except redis.RedisError as e: