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
+15 -3
View File
@@ -5,25 +5,35 @@ from pydantic import BaseModel, EmailStr, Field
class RegisterRequest(BaseModel):
"""Request body for self-service registration."""
account_name: str = Field(..., min_length=2, max_length=255, description="Company/account name")
full_name: str = Field(..., min_length=2, max_length=255, description="Admin user's full name")
account_name: str = Field(
..., min_length=2, max_length=255, description="Company/account name"
)
full_name: str = Field(
..., min_length=2, max_length=255, description="Admin user's full name"
)
email: EmailStr = Field(..., description="Admin user's email address")
password: str = Field(..., min_length=8, max_length=128, description="Password (min 8 characters)")
password: str = Field(
..., min_length=8, max_length=128, description="Password (min 8 characters)"
)
class LoginRequest(BaseModel):
"""Request body for login."""
email: EmailStr
password: str
class RefreshRequest(BaseModel):
"""Request body for token refresh."""
refresh_token: str
class UserInfo(BaseModel):
"""Basic user info returned with tokens (no password hash)."""
id: str
email: str
full_name: str
@@ -35,6 +45,7 @@ class UserInfo(BaseModel):
class TokenResponse(BaseModel):
"""Response with access and refresh tokens, plus user info."""
access_token: str
refresh_token: str
token_type: str = "bearer"
@@ -43,6 +54,7 @@ class TokenResponse(BaseModel):
class UserResponse(BaseModel):
"""Public user representation (no password hash)."""
id: str
email: str
full_name: str