Skip to content

Commit 2538369

Browse files
committed
fix: additional syntax corrections
1 parent 9e76752 commit 2538369

File tree

4 files changed

+182
-243
lines changed

4 files changed

+182
-243
lines changed

.env.testing

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# App
2+
SECRET_KEY='secret-key'
3+
4+
DATABASE_ECHO=false
5+
DATABASE_ECHO_POOL=false
6+
# Cache
7+
VALKEY_PORT=6308
8+
REDIS_URL=redis://localhost:${VALKEY_PORT}/0
9+
10+
SAQ_USE_SERVER_LIFESPAN=False # don't use with docker.
11+
SAQ_WEB_ENABLED=True
12+
SAQ_BACKGROUND_WORKERS=1
13+
SAQ_CONCURRENCY=1
14+
15+
VITE_HOST=localhost
16+
VITE_PORT=3006
17+
VITE_HOT_RELOAD=True
18+
VITE_DEV_MODE=True
19+
VITE_USE_SERVER_LIFESPAN=False

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies = [
2828
description = "Opinionated template for a Litestar application."
2929
keywords = ["litestar", "sqlalchemy", "alembic", "fullstack", "api", "asgi", "litestar", "vite", "spa"]
3030
license = { text = "MIT" }
31-
name = "app"
31+
name = "litestar-fullstack"
3232
readme = "README.md"
3333
requires-python = ">=3.11,<3.13"
3434
version = "0.2.0"
@@ -77,11 +77,10 @@ linting = [
7777
"slotscheck",
7878
"types-click",
7979
"types-passlib",
80-
"types-python-jose",
8180
"types-pyyaml",
8281
"types-redis",
8382
"asyncpg-stubs",
84-
"pylint",
83+
"pyright",
8584
]
8685
test = [
8786
"pytest",

src/app/domain/accounts/deps.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
)
2828

2929

30-
async def provide_user(connection: Request[m.User, Any, Any]) -> m.User:
31-
"""Get the user from the connection.
30+
async def provide_user(request: Request[m.User, Any, Any]) -> m.User:
31+
"""Get the user from the request.
3232
3333
Args:
34-
connection: current connection.
34+
request: current Request.
3535
3636
Returns:
3737
User
3838
"""
39-
return connection.user
39+
return request.user

0 commit comments

Comments
 (0)