Skip to content

Commit eaf303c

Browse files
authored
Merge branch 'master' into dependabot/bun/react-dom-19.2.4
2 parents 241ebd1 + 6f32450 commit eaf303c

File tree

8 files changed

+31
-18
lines changed

8 files changed

+31
-18
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ repos:
4040
language: unsupported
4141
types: [python]
4242

43+
- id: local-mypy
44+
name: mypy check
45+
entry: uv run mypy backend/app
46+
require_serial: true
47+
language: unsupported
48+
pass_filenames: false
49+
4350
- id: generate-frontend-sdk
4451
name: Generate Frontend SDK
4552
entry: bash ./scripts/generate-client.sh

backend/app/alembic/env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# Interpret the config file for Python logging.
1212
# This line sets up loggers basically.
13+
assert config.config_file_name is not None
1314
fileConfig(config.config_file_name)
1415

1516
# add your model's MetaData object here

backend/app/api/routes/items.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import Any
33

44
from fastapi import APIRouter, HTTPException
5-
from sqlmodel import func, select
5+
from sqlmodel import col, func, select
66

77
from app.api.deps import CurrentUser, SessionDep
88
from app.models import Item, ItemCreate, ItemPublic, ItemsPublic, ItemUpdate, Message
@@ -22,7 +22,7 @@ def read_items(
2222
count_statement = select(func.count()).select_from(Item)
2323
count = session.exec(count_statement).one()
2424
statement = (
25-
select(Item).order_by(Item.created_at.desc()).offset(skip).limit(limit)
25+
select(Item).order_by(col(Item.created_at).desc()).offset(skip).limit(limit)
2626
)
2727
items = session.exec(statement).all()
2828
else:
@@ -35,7 +35,7 @@ def read_items(
3535
statement = (
3636
select(Item)
3737
.where(Item.owner_id == current_user.id)
38-
.order_by(Item.created_at.desc())
38+
.order_by(col(Item.created_at).desc())
3939
.offset(skip)
4040
.limit(limit)
4141
)

backend/app/api/routes/users.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ def read_users(session: SessionDep, skip: int = 0, limit: int = 100) -> Any:
4242
count_statement = select(func.count()).select_from(User)
4343
count = session.exec(count_statement).one()
4444

45-
statement = select(User).order_by(User.created_at.desc()).offset(skip).limit(limit)
45+
statement = (
46+
select(User).order_by(col(User.created_at).desc()).offset(skip).limit(limit)
47+
)
4648
users = session.exec(statement).all()
4749

4850
return UsersPublic(data=users, count=count)
@@ -223,7 +225,7 @@ def delete_user(
223225
status_code=403, detail="Super users are not allowed to delete themselves"
224226
)
225227
statement = delete(Item).where(col(Item.owner_id) == user_id)
226-
session.exec(statement) # type: ignore
228+
session.exec(statement)
227229
session.delete(user)
228230
session.commit()
229231
return Message(message="User deleted successfully")

bun.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/Dockerfile.playwright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/playwright:v1.58.0-noble
1+
FROM mcr.microsoft.com/playwright:v1.58.2-noble
22

33
WORKDIR /app
44

frontend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@radix-ui/react-tabs": "^1.1.13",
2828
"@radix-ui/react-tooltip": "^1.2.8",
2929
"@tailwindcss/vite": "^4.1.18",
30-
"@tanstack/react-query": "^5.90.12",
30+
"@tanstack/react-query": "^5.90.20",
3131
"@tanstack/react-query-devtools": "^5.91.1",
3232
"@tanstack/react-router": "^1.157.3",
3333
"@tanstack/react-router-devtools": "^1.156.0",
@@ -36,7 +36,7 @@
3636
"class-variance-authority": "^0.7.1",
3737
"clsx": "^2.1.1",
3838
"form-data": "4.0.5",
39-
"lucide-react": "^0.562.0",
39+
"lucide-react": "^0.563.0",
4040
"next-themes": "^0.4.6",
4141
"react": "^19.1.1",
4242
"react-dom": "^19.2.4",
@@ -51,7 +51,7 @@
5151
"devDependencies": {
5252
"@biomejs/biome": "^2.3.12",
5353
"@hey-api/openapi-ts": "0.73.0",
54-
"@playwright/test": "1.58.0",
54+
"@playwright/test": "1.58.2",
5555
"@tanstack/router-devtools": "^1.157.17",
5656
"@tanstack/router-plugin": "^1.140.0",
5757
"@types/node": "^25.1.0",

release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
### Internal
1010

11+
* ⬆ Bump @tanstack/react-query from 5.90.19 to 5.90.20. PR [#2174](https://github.com/fastapi/full-stack-fastapi-template/pull/2174) by [@dependabot[bot]](https://github.com/apps/dependabot).
12+
* ⬆ Bump playwright from v1.58.0-noble to v1.58.2-noble in /frontend. PR [#2175](https://github.com/fastapi/full-stack-fastapi-template/pull/2175) by [@dependabot[bot]](https://github.com/apps/dependabot).
13+
* 👷 Run mypy by pre-commit. PR [#2169](https://github.com/fastapi/full-stack-fastapi-template/pull/2169) by [@YuriiMotov](https://github.com/YuriiMotov).
1114
* ⬆ Bump @tanstack/router-devtools from 1.153.2 to 1.157.17. PR [#2166](https://github.com/fastapi/full-stack-fastapi-template/pull/2166) by [@dependabot[bot]](https://github.com/apps/dependabot).
1215
* ⬆ Bump @types/node from 25.0.10 to 25.1.0. PR [#2168](https://github.com/fastapi/full-stack-fastapi-template/pull/2168) by [@dependabot[bot]](https://github.com/apps/dependabot).
1316
* ⬆ Bump axios from 1.13.2 to 1.13.4. PR [#2164](https://github.com/fastapi/full-stack-fastapi-template/pull/2164) by [@dependabot[bot]](https://github.com/apps/dependabot).

0 commit comments

Comments
 (0)