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:
@@ -25,37 +25,36 @@ Usage:
|
||||
#
|
||||
# NOTE: This module owns the relationships to tenancy models (User, Store).
|
||||
# Core models should NOT have back-references to optional module models.
|
||||
from app.modules.orders.models import Order # noqa: F401
|
||||
from app.modules.tenancy.models.user import User # noqa: F401
|
||||
from app.modules.tenancy.models.store import Store # noqa: F401
|
||||
|
||||
from app.modules.marketplace.models.letzshop import (
|
||||
LetzshopFulfillmentQueue,
|
||||
# Import jobs
|
||||
LetzshopHistoricalImportJob,
|
||||
LetzshopStoreCache,
|
||||
LetzshopSyncLog,
|
||||
# Letzshop credentials and sync
|
||||
StoreLetzshopCredentials,
|
||||
)
|
||||
from app.modules.marketplace.models.marketplace_import_job import (
|
||||
MarketplaceImportError,
|
||||
MarketplaceImportJob,
|
||||
)
|
||||
from app.modules.marketplace.models.marketplace_product import (
|
||||
DigitalDeliveryMethod,
|
||||
MarketplaceProduct,
|
||||
ProductType,
|
||||
DigitalDeliveryMethod,
|
||||
)
|
||||
from app.modules.marketplace.models.marketplace_product_translation import (
|
||||
MarketplaceProductTranslation,
|
||||
)
|
||||
from app.modules.marketplace.models.marketplace_import_job import (
|
||||
MarketplaceImportJob,
|
||||
MarketplaceImportError,
|
||||
)
|
||||
from app.modules.marketplace.models.letzshop import (
|
||||
# Letzshop credentials and sync
|
||||
StoreLetzshopCredentials,
|
||||
LetzshopFulfillmentQueue,
|
||||
LetzshopStoreCache,
|
||||
LetzshopSyncLog,
|
||||
# Import jobs
|
||||
LetzshopHistoricalImportJob,
|
||||
)
|
||||
from app.modules.marketplace.models.onboarding import (
|
||||
STEP_ORDER,
|
||||
OnboardingStatus,
|
||||
OnboardingStep,
|
||||
STEP_ORDER,
|
||||
StoreOnboarding,
|
||||
)
|
||||
from app.modules.orders.models import Order # noqa: F401
|
||||
from app.modules.tenancy.models.store import Store # noqa: F401
|
||||
from app.modules.tenancy.models.user import User # noqa: F401
|
||||
|
||||
__all__ = [
|
||||
# Marketplace products
|
||||
|
||||
Reference in New Issue
Block a user