Skip to content

Commit 5313797

Browse files
committed
chore: updating dependencies
1 parent 0556bb2 commit 5313797

File tree

4 files changed

+523
-459
lines changed

4 files changed

+523
-459
lines changed

compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: redis-starter-python
22
services:
33
redis:
44
container_name: redis
5-
image: "redis:8.0-M02"
5+
image: "redis:alpine"
66
ports:
77
- 6379:6379
88
deploy:
@@ -28,4 +28,3 @@ services:
2828

2929
volumes:
3030
redis-data:
31-

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ classifiers = [
1818
"Programming Language :: Python"
1919
]
2020
dependencies = [
21-
"fastapi[standard] (>=0.115.6,<0.116.0)",
22-
"pydantic>=2.10.5",
23-
"python-dotenv>=1.0.1",
24-
"redis[hiredis]>=5.2.1",
21+
"fastapi[standard] (>=0.115.12,<0.116.0)",
22+
"pydantic>=2.11.5",
23+
"python-dotenv>=1.1.0",
24+
"redis[hiredis]>=6.2.0",
2525
]
2626

2727
[dependency-groups]
@@ -36,8 +36,8 @@ Repository = "https://github.com/redis-developer/redis-starter-python.git"
3636

3737
[project.optional-dependencies]
3838
dev = [
39-
"mypy<2.0.0,>=1.8.0",
40-
"ruff<1.0.0,>=0.2.2",
39+
"mypy<2.0.0,>=1.16.0",
40+
"ruff<1.0.0,>=0.11.12",
4141
]
4242

4343
[tool.pytest.ini_options]
@@ -74,4 +74,3 @@ ignore = [
7474
[tool.ruff.lint.pyupgrade]
7575
# Preserve types, even if a file imports `from __future__ import annotations`.
7676
keep-runtime-typing = true
77-

src/app/components/todos/store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from redis.asyncio import Redis
1111
from redis.commands.search.document import Document
1212
from redis.commands.search.field import TextField
13-
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
13+
from redis.commands.search.index_definition import IndexDefinition, IndexType
1414
from redis.commands.search.query import Query
1515
from redis.exceptions import ResponseError
1616

@@ -91,7 +91,7 @@ async def have_index(self) -> bool:
9191
try:
9292
await self.redis.ft(self.INDEX).info()
9393
except ResponseError as e:
94-
if "Unknown index name" in str(e):
94+
if "Unknown index name" in str(e) or "no such index" in str(e):
9595
logger.debug(f"Index {self.INDEX} does not exist")
9696
return False
9797

0 commit comments

Comments
 (0)