chore(quality): apply ruff autofixes and formatting (29 fixes, 41 files reformatted)

This commit is contained in:
Agent Zero
2026-06-10 21:31:41 +00:00
parent 054d4041e6
commit 7c12a96cdc
43 changed files with 1096 additions and 524 deletions
+4
View File
@@ -5,6 +5,7 @@ from pydantic import BaseModel, EmailStr, Field
class UserCreateRequest(BaseModel):
"""Request body for creating a new user (invite)."""
email: EmailStr
full_name: str = Field(..., min_length=2, max_length=255)
password: str = Field(..., min_length=8, max_length=128)
@@ -13,6 +14,7 @@ class UserCreateRequest(BaseModel):
class UserUpdateRequest(BaseModel):
"""Request body for updating an existing user."""
full_name: str | None = Field(None, min_length=2, max_length=255)
role_id: str | None = None
is_active: bool | None = None
@@ -20,6 +22,7 @@ class UserUpdateRequest(BaseModel):
class UserResponse(BaseModel):
"""Public user representation (no password hash)."""
id: str
account_id: str
email: str
@@ -34,6 +37,7 @@ class UserResponse(BaseModel):
class UserListResponse(BaseModel):
"""Paginated list of users."""
items: list[UserResponse]
total: int
page: int