Skip to content

Commit 81ae0b6

Browse files
authored
Merge pull request #183 from yuvalturg/use-string-for-email
Use string for email field
2 parents 42a87b5 + 7b703fb commit 81ae0b6

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Python
4646
uses: actions/setup-python@v5
4747
with:
48-
python-version: '3.12'
48+
python-version: '3.13'
4949
cache: 'pip'
5050

5151
- name: Install tools
@@ -82,10 +82,10 @@ jobs:
8282
- name: Checkout
8383
uses: actions/checkout@v4
8484

85-
- name: Setup Python 3.12 (for black hook)
85+
- name: Setup Python 3.13 (for black hook)
8686
uses: actions/setup-python@v5
8787
with:
88-
python-version: '3.12'
88+
python-version: '3.13'
8989

9090
- name: Install backend tools (for local hooks like vulture)
9191
run: |
@@ -110,7 +110,7 @@ jobs:
110110
- name: Setup Python
111111
uses: actions/setup-python@v5
112112
with:
113-
python-version: '3.12'
113+
python-version: '3.13'
114114
cache: 'pip'
115115

116116
- name: Install dependencies

backend/.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ repos:
1515
- id: debug-statements
1616

1717
- repo: https://github.com/psf/black
18-
rev: 25.1.0
18+
rev: 26.1.0
1919
hooks:
2020
- id: black
21-
language_version: python3.12
21+
language_version: python3.13
2222
exclude: '^(backend/migrations/|migrations/)'
2323

2424
- repo: https://github.com/pycqa/isort

backend/app/api/llamastack.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,4 @@ def create_tool_call_trace_entry(item: Any) -> dict:
198198
}
199199

200200

201-
ERROR_NO_RESPONSE_MESSAGE = (
202-
"⚠️ Unable to generate a response. Please try rephrasing your question or try again."
203-
)
201+
ERROR_NO_RESPONSE_MESSAGE = "⚠️ Unable to generate a response. Please try rephrasing your question or try again."

backend/app/schemas/user.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import List, Optional
66
from uuid import UUID
77

8-
from pydantic import BaseModel, EmailStr
8+
from pydantic import BaseModel
99

1010
from ..models.user import RoleEnum
1111
from .base import BaseSchema, TimestampMixin
@@ -15,7 +15,7 @@ class UserBase(BaseModel):
1515
"""Base user schema with common fields."""
1616

1717
username: str
18-
email: EmailStr
18+
email: str
1919
role: RoleEnum
2020
agent_ids: List[UUID] = []
2121

@@ -30,7 +30,7 @@ class UserUpdate(BaseModel):
3030
"""Schema for updating a user."""
3131

3232
username: Optional[str] = None
33-
email: Optional[EmailStr] = None
33+
email: Optional[str] = None
3434
role: Optional[RoleEnum] = None
3535
agent_ids: Optional[List[UUID]] = None
3636

0 commit comments

Comments
 (0)