fix(lint): auto-fix ruff violations and tune lint rules
- Auto-fixed 4,496 lint issues (import sorting, modern syntax, etc.) - Added ignore rules for patterns intentional in this codebase: E402 (late imports), E712 (SQLAlchemy filters), B904 (raise from), SIM108/SIM105/SIM117 (readability preferences) - Added per-file ignores for tests and scripts - Excluded broken scripts/rename_terminology.py (has curly quotes) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,113 +12,113 @@ Usage:
|
||||
)
|
||||
"""
|
||||
|
||||
from app.modules.marketplace.schemas.letzshop import (
|
||||
# Fulfillment
|
||||
FulfillmentConfirmRequest,
|
||||
FulfillmentOperationResponse,
|
||||
FulfillmentQueueItemResponse,
|
||||
FulfillmentQueueListResponse,
|
||||
FulfillmentRejectRequest,
|
||||
FulfillmentTrackingRequest,
|
||||
LetzshopCachedStoreDetail,
|
||||
LetzshopCachedStoreDetailResponse,
|
||||
# Store Directory
|
||||
LetzshopCachedStoreItem,
|
||||
LetzshopCachedStoreListResponse,
|
||||
# Connection
|
||||
LetzshopConnectionTestRequest,
|
||||
LetzshopConnectionTestResponse,
|
||||
LetzshopCreateStoreFromCacheResponse,
|
||||
# Credentials
|
||||
LetzshopCredentialsCreate,
|
||||
LetzshopCredentialsResponse,
|
||||
LetzshopCredentialsStatus,
|
||||
LetzshopCredentialsUpdate,
|
||||
LetzshopExportFileInfo,
|
||||
# Product Export
|
||||
LetzshopExportRequest,
|
||||
LetzshopExportResponse,
|
||||
# Historical Import
|
||||
LetzshopHistoricalImportJobResponse,
|
||||
LetzshopHistoricalImportStartResponse,
|
||||
# Jobs
|
||||
LetzshopJobItem,
|
||||
LetzshopJobsListResponse,
|
||||
LetzshopOrderDetailResponse,
|
||||
# Orders
|
||||
LetzshopOrderItemResponse,
|
||||
LetzshopOrderListResponse,
|
||||
LetzshopOrderResponse,
|
||||
LetzshopOrderStats,
|
||||
LetzshopStoreDirectoryStats,
|
||||
LetzshopStoreDirectoryStatsResponse,
|
||||
LetzshopStoreDirectorySyncResponse,
|
||||
LetzshopStoreListResponse,
|
||||
# Admin
|
||||
LetzshopStoreOverview,
|
||||
LetzshopSuccessResponse,
|
||||
LetzshopSyncLogListResponse,
|
||||
# Sync
|
||||
LetzshopSyncLogResponse,
|
||||
LetzshopSyncTriggerRequest,
|
||||
LetzshopSyncTriggerResponse,
|
||||
)
|
||||
from app.modules.marketplace.schemas.marketplace_import_job import (
|
||||
MarketplaceImportJobRequest,
|
||||
AdminMarketplaceImportJobRequest,
|
||||
MarketplaceImportJobResponse,
|
||||
MarketplaceImportJobListResponse,
|
||||
MarketplaceImportErrorResponse,
|
||||
MarketplaceImportErrorListResponse,
|
||||
AdminMarketplaceImportJobResponse,
|
||||
AdminMarketplaceImportJobListResponse,
|
||||
AdminMarketplaceImportJobRequest,
|
||||
AdminMarketplaceImportJobResponse,
|
||||
MarketplaceImportErrorListResponse,
|
||||
MarketplaceImportErrorResponse,
|
||||
MarketplaceImportJobListResponse,
|
||||
MarketplaceImportJobRequest,
|
||||
MarketplaceImportJobResponse,
|
||||
MarketplaceImportJobStatusUpdate,
|
||||
)
|
||||
from app.modules.marketplace.schemas.marketplace_product import (
|
||||
# Translation schemas
|
||||
MarketplaceProductTranslationSchema,
|
||||
# Import schemas
|
||||
MarketplaceImportRequest,
|
||||
MarketplaceImportResponse,
|
||||
# Base schemas
|
||||
MarketplaceProductBase,
|
||||
# CRUD schemas
|
||||
MarketplaceProductCreate,
|
||||
MarketplaceProductUpdate,
|
||||
MarketplaceProductDetailResponse,
|
||||
MarketplaceProductListResponse,
|
||||
# Response schemas
|
||||
MarketplaceProductResponse,
|
||||
MarketplaceProductListResponse,
|
||||
MarketplaceProductDetailResponse,
|
||||
# Import schemas
|
||||
MarketplaceImportRequest,
|
||||
MarketplaceImportResponse,
|
||||
)
|
||||
from app.modules.marketplace.schemas.letzshop import (
|
||||
# Credentials
|
||||
LetzshopCredentialsCreate,
|
||||
LetzshopCredentialsUpdate,
|
||||
LetzshopCredentialsResponse,
|
||||
LetzshopCredentialsStatus,
|
||||
# Orders
|
||||
LetzshopOrderItemResponse,
|
||||
LetzshopOrderResponse,
|
||||
LetzshopOrderDetailResponse,
|
||||
LetzshopOrderStats,
|
||||
LetzshopOrderListResponse,
|
||||
# Fulfillment
|
||||
FulfillmentConfirmRequest,
|
||||
FulfillmentRejectRequest,
|
||||
FulfillmentTrackingRequest,
|
||||
FulfillmentQueueItemResponse,
|
||||
FulfillmentQueueListResponse,
|
||||
FulfillmentOperationResponse,
|
||||
# Sync
|
||||
LetzshopSyncLogResponse,
|
||||
LetzshopSyncLogListResponse,
|
||||
LetzshopSyncTriggerRequest,
|
||||
LetzshopSyncTriggerResponse,
|
||||
# Connection
|
||||
LetzshopConnectionTestRequest,
|
||||
LetzshopConnectionTestResponse,
|
||||
LetzshopSuccessResponse,
|
||||
# Admin
|
||||
LetzshopStoreOverview,
|
||||
LetzshopStoreListResponse,
|
||||
# Jobs
|
||||
LetzshopJobItem,
|
||||
LetzshopJobsListResponse,
|
||||
# Historical Import
|
||||
LetzshopHistoricalImportJobResponse,
|
||||
LetzshopHistoricalImportStartResponse,
|
||||
# Store Directory
|
||||
LetzshopCachedStoreItem,
|
||||
LetzshopCachedStoreDetail,
|
||||
LetzshopStoreDirectoryStats,
|
||||
LetzshopStoreDirectoryStatsResponse,
|
||||
LetzshopCachedStoreListResponse,
|
||||
LetzshopCachedStoreDetailResponse,
|
||||
LetzshopStoreDirectorySyncResponse,
|
||||
LetzshopCreateStoreFromCacheResponse,
|
||||
# Product Export
|
||||
LetzshopExportRequest,
|
||||
LetzshopExportFileInfo,
|
||||
LetzshopExportResponse,
|
||||
# Translation schemas
|
||||
MarketplaceProductTranslationSchema,
|
||||
MarketplaceProductUpdate,
|
||||
)
|
||||
from app.modules.marketplace.schemas.onboarding import (
|
||||
# Step status
|
||||
StepStatus,
|
||||
MerchantProfileStepStatus,
|
||||
# Step 2
|
||||
LetzshopApiConfigRequest,
|
||||
LetzshopApiConfigResponse,
|
||||
LetzshopApiStepStatus,
|
||||
ProductImportStepStatus,
|
||||
OrderSyncStepStatus,
|
||||
# Main status
|
||||
OnboardingStatusResponse,
|
||||
LetzshopApiTestRequest,
|
||||
LetzshopApiTestResponse,
|
||||
# Step 1
|
||||
MerchantProfileRequest,
|
||||
MerchantProfileResponse,
|
||||
# Step 2
|
||||
LetzshopApiConfigRequest,
|
||||
LetzshopApiTestRequest,
|
||||
LetzshopApiTestResponse,
|
||||
LetzshopApiConfigResponse,
|
||||
# Step 3
|
||||
ProductImportConfigRequest,
|
||||
ProductImportConfigResponse,
|
||||
# Step 4
|
||||
OrderSyncTriggerRequest,
|
||||
OrderSyncTriggerResponse,
|
||||
OrderSyncProgressResponse,
|
||||
OrderSyncCompleteRequest,
|
||||
OrderSyncCompleteResponse,
|
||||
MerchantProfileStepStatus,
|
||||
# Admin
|
||||
OnboardingSkipRequest,
|
||||
OnboardingSkipResponse,
|
||||
# Main status
|
||||
OnboardingStatusResponse,
|
||||
OrderSyncCompleteRequest,
|
||||
OrderSyncCompleteResponse,
|
||||
OrderSyncProgressResponse,
|
||||
OrderSyncStepStatus,
|
||||
# Step 4
|
||||
OrderSyncTriggerRequest,
|
||||
OrderSyncTriggerResponse,
|
||||
# Step 3
|
||||
ProductImportConfigRequest,
|
||||
ProductImportConfigResponse,
|
||||
ProductImportStepStatus,
|
||||
# Step status
|
||||
StepStatus,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
|
||||
@@ -15,7 +15,6 @@ from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
|
||||
# =============================================================================
|
||||
# STEP STATUS MODELS
|
||||
# =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user