Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/bump-pre-commit-hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
pyproject.toml
uv.lock
- name: Bump pre-commit hooks
run: uv run prek auto-update --freeze --cooldown-days 7
run: uv run prek update --freeze --cooldown-days 7

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prek auto-update was removed in prek 0.5.0 in favor of prek update.

See https://github.com/j178/prek/releases#release-v0.5.0

- name: Get PR Submit token
id: pr-submit
uses: tiangolo/pr-submit@d802fdf59bde80bc3eb8bd3259f4cbeec63de4aa # 0.0.1
Expand All @@ -62,7 +62,7 @@ jobs:
--base "$BASE_BRANCH" \
--head "$branch" \
--title "⬆ Bump pre-commit hooks" \
--body "Bump pre-commit hook versions via \`prek auto-update --freeze --cooldown-days 7\`." \
--body "Bump pre-commit hook versions via \`prek update --freeze --cooldown-days 7\`." \
--label internal \
--label dependencies \
--label pre-commit
Expand Down
11 changes: 2 additions & 9 deletions backend/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from datetime import UTC, datetime

from pydantic import EmailStr
from sqlalchemy import DateTime
from sqlmodel import Field, Relationship, SQLModel


Expand Down Expand Up @@ -52,10 +51,7 @@ class UpdatePassword(SQLModel):
class User(UserBase, table=True):
id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True)
hashed_password: str
created_at: datetime | None = Field(
default_factory=get_datetime_utc,
sa_type=DateTime(timezone=True), # type: ignore
)
created_at: datetime | None = Field(default_factory=get_datetime_utc)
items: list[Item] = Relationship(back_populates="owner", cascade_delete=True)


Expand Down Expand Up @@ -90,10 +86,7 @@ class ItemUpdate(SQLModel):
# Database model, database table inferred from class name
class Item(ItemBase, table=True):
id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True)
created_at: datetime | None = Field(
default_factory=get_datetime_utc,
sa_type=DateTime(timezone=True), # type: ignore
)
created_at: datetime | None = Field(default_factory=get_datetime_utc)
owner_id: uuid.UUID = Field(
foreign_key="user.id", nullable=False, ondelete="CASCADE"
)
Expand Down
4 changes: 2 additions & 2 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ dependencies = [
"fastapi[standard]>=0.141.1,<1.0.0",
"python-multipart<1.0.0,>=0.0.27",
"email-validator<3.0.0.0,>=2.1.0.post1",
"pydantic>2.0",
"pydantic>=2.13.5",
"emails>=1.1.2,<2.0",
"jinja2<4.0.0,>=3.1.4",
"alembic>=1.19.1,<2.0.0",
"httpx<1.0.0,>=0.25.1",
"psycopg[binary]>=3.3.6,<4.0.0",
"sqlmodel>=0.0.39,<1.0.0",
"sqlmodel>=0.0.46,<1.0.0",
"pydantic-settings<3.0.0,>=2.2.1",
"sentry-sdk[fastapi]>=2.70.0,<3.0.0",
"pyjwt>=2.15.0,<3.0.0",
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[dependency-groups]
dev = [
"prek>=0.4.14,<1.0.0",
"typer>=0.27.1,<1.0.0",
"zizmor>=1.29.0",
"prek>=0.5.3,<1.0.0",
"typer>=0.27.2,<1.0.0",
"zizmor>=1.30.1",
]

github-actions = [
Expand Down
Loading
Loading