chore(quality): apply ruff autofixes and formatting (29 fixes, 41 files reformatted)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user