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
+6 -1
View File
@@ -1,10 +1,11 @@
"""Pydantic schemas for contacts and tags."""
from pydantic import BaseModel, Field, EmailStr
from pydantic import BaseModel, Field
class TagResponse(BaseModel):
"""Public tag representation."""
id: str
name: str
color: str | None = None
@@ -14,6 +15,7 @@ class TagResponse(BaseModel):
class ContactCreateRequest(BaseModel):
"""Request body for creating a new contact."""
type: str = Field(..., pattern="^(company|person)$")
company_name: str | None = Field(None, max_length=255)
first_name: str | None = Field(None, max_length=100)
@@ -39,6 +41,7 @@ class ContactCreateRequest(BaseModel):
class ContactUpdateRequest(BaseModel):
"""Request body for updating an existing contact."""
type: str | None = Field(None, pattern="^(company|person)$")
company_name: str | None = Field(None, max_length=255)
first_name: str | None = Field(None, max_length=100)
@@ -64,6 +67,7 @@ class ContactUpdateRequest(BaseModel):
class ContactResponse(BaseModel):
"""Public contact representation with tags."""
id: str
account_id: str
type: str
@@ -95,6 +99,7 @@ class ContactResponse(BaseModel):
class ContactListResponse(BaseModel):
"""Paginated list of contacts."""
items: list[ContactResponse]
total: int
page: int