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,51 +12,59 @@ Usage:
|
||||
)
|
||||
"""
|
||||
|
||||
from app.modules.billing.schemas.billing import (
|
||||
BillingHistoryListResponse,
|
||||
# Billing History schemas
|
||||
BillingHistoryResponse,
|
||||
BillingHistoryWithMerchant,
|
||||
# Checkout & Portal schemas
|
||||
CheckoutRequest,
|
||||
CheckoutResponse,
|
||||
FeatureCatalogResponse,
|
||||
# Feature Catalog schemas
|
||||
FeatureDeclarationResponse,
|
||||
# Merchant Feature Override schemas
|
||||
MerchantFeatureOverrideEntry,
|
||||
MerchantFeatureOverrideResponse,
|
||||
MerchantSubscriptionAdminCreate,
|
||||
# Merchant Subscription Admin schemas
|
||||
MerchantSubscriptionAdminResponse,
|
||||
MerchantSubscriptionAdminUpdate,
|
||||
MerchantSubscriptionListResponse,
|
||||
MerchantSubscriptionWithMerchant,
|
||||
PortalSessionResponse,
|
||||
# Stats schemas
|
||||
SubscriptionStatsResponse,
|
||||
SubscriptionTierBase,
|
||||
SubscriptionTierCreate,
|
||||
SubscriptionTierListResponse,
|
||||
SubscriptionTierResponse,
|
||||
SubscriptionTierUpdate,
|
||||
# Subscription Tier Admin schemas
|
||||
TierFeatureLimitEntry,
|
||||
)
|
||||
from app.modules.billing.schemas.subscription import (
|
||||
# Tier schemas
|
||||
TierFeatureLimitResponse,
|
||||
TierInfo,
|
||||
# Subscription schemas
|
||||
MerchantSubscriptionCreate,
|
||||
MerchantSubscriptionUpdate,
|
||||
MerchantSubscriptionResponse,
|
||||
MerchantSubscriptionStatusResponse,
|
||||
ChangeTierRequest,
|
||||
ChangeTierResponse,
|
||||
FeatureCheckResponse,
|
||||
# Feature summary schemas
|
||||
FeatureSummaryResponse,
|
||||
# Limit check schemas
|
||||
LimitCheckResult,
|
||||
FeatureCheckResponse,
|
||||
)
|
||||
from app.modules.billing.schemas.billing import (
|
||||
# Subscription Tier Admin schemas
|
||||
TierFeatureLimitEntry,
|
||||
SubscriptionTierBase,
|
||||
SubscriptionTierCreate,
|
||||
SubscriptionTierUpdate,
|
||||
SubscriptionTierResponse,
|
||||
SubscriptionTierListResponse,
|
||||
# Merchant Subscription Admin schemas
|
||||
MerchantSubscriptionAdminResponse,
|
||||
MerchantSubscriptionWithMerchant,
|
||||
MerchantSubscriptionListResponse,
|
||||
MerchantSubscriptionAdminCreate,
|
||||
MerchantSubscriptionAdminUpdate,
|
||||
# Merchant Feature Override schemas
|
||||
MerchantFeatureOverrideEntry,
|
||||
MerchantFeatureOverrideResponse,
|
||||
# Billing History schemas
|
||||
BillingHistoryResponse,
|
||||
BillingHistoryWithMerchant,
|
||||
BillingHistoryListResponse,
|
||||
# Checkout & Portal schemas
|
||||
CheckoutRequest,
|
||||
CheckoutResponse,
|
||||
PortalSessionResponse,
|
||||
# Stats schemas
|
||||
SubscriptionStatsResponse,
|
||||
# Feature Catalog schemas
|
||||
FeatureDeclarationResponse,
|
||||
FeatureCatalogResponse,
|
||||
MerchantPortalAvailableTiersResponse,
|
||||
MerchantPortalInvoiceListResponse,
|
||||
MerchantPortalSubscriptionDetailResponse,
|
||||
# Merchant portal schemas
|
||||
MerchantPortalSubscriptionItem,
|
||||
MerchantPortalSubscriptionListResponse,
|
||||
# Subscription schemas
|
||||
MerchantSubscriptionCreate,
|
||||
MerchantSubscriptionResponse,
|
||||
MerchantSubscriptionStatusResponse,
|
||||
MerchantSubscriptionUpdate,
|
||||
# Tier schemas
|
||||
TierFeatureLimitResponse,
|
||||
TierInfo,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
@@ -73,6 +81,14 @@ __all__ = [
|
||||
# Limit check schemas (subscription.py)
|
||||
"LimitCheckResult",
|
||||
"FeatureCheckResponse",
|
||||
# Merchant portal schemas (subscription.py)
|
||||
"MerchantPortalSubscriptionItem",
|
||||
"MerchantPortalSubscriptionListResponse",
|
||||
"MerchantPortalSubscriptionDetailResponse",
|
||||
"MerchantPortalAvailableTiersResponse",
|
||||
"ChangeTierRequest",
|
||||
"ChangeTierResponse",
|
||||
"MerchantPortalInvoiceListResponse",
|
||||
# Subscription Tier Admin schemas (billing.py)
|
||||
"TierFeatureLimitEntry",
|
||||
"SubscriptionTierBase",
|
||||
|
||||
Reference in New Issue
Block a user