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 -1
View File
@@ -1,11 +1,11 @@
"""Pydantic schemas for StockLocation."""
from datetime import datetime
from pydantic import BaseModel, Field
class StockLocationCreateRequest(BaseModel):
"""Request body for creating a new stock location."""
name: str = Field(..., max_length=255)
address: str | None = Field(None, max_length=500)
is_default: bool = False
@@ -13,6 +13,7 @@ class StockLocationCreateRequest(BaseModel):
class StockLocationUpdateRequest(BaseModel):
"""Request body for updating a stock location."""
name: str | None = Field(None, max_length=255)
address: str | None = Field(None, max_length=500)
is_default: bool | None = None
@@ -20,6 +21,7 @@ class StockLocationUpdateRequest(BaseModel):
class StockLocationResponse(BaseModel):
"""Public stock location representation."""
id: str
account_id: str
name: str
@@ -33,6 +35,7 @@ class StockLocationResponse(BaseModel):
class StockLocationListResponse(BaseModel):
"""Paginated list of stock locations."""
items: list[StockLocationResponse]
total: int
page: int