Add ruff config to exclude alembic E402, SQLAlchemy F821, and pre-existing E501 line-length issues. Auto-fix 69 unused imports and 2 f-strings without placeholders. Manually fix 8 unused variables. Apply ruff format to 127 files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
"""SQLAlchemy ORM models."""
|
|
|
|
from app.models.tenant import Tenant
|
|
from app.models.user import User, UserRole
|
|
from app.models.device import (
|
|
Device,
|
|
DeviceGroup,
|
|
DeviceTag,
|
|
DeviceGroupMembership,
|
|
DeviceTagAssignment,
|
|
DeviceStatus,
|
|
)
|
|
from app.models.alert import AlertRule, NotificationChannel, AlertRuleChannel, AlertEvent
|
|
from app.models.firmware import FirmwareVersion, FirmwareUpgradeJob
|
|
from app.models.config_template import ConfigTemplate, ConfigTemplateTag, TemplatePushJob
|
|
from app.models.audit_log import AuditLog
|
|
from app.models.maintenance_window import MaintenanceWindow
|
|
from app.models.api_key import ApiKey
|
|
from app.models.config_backup import RouterConfigSnapshot, RouterConfigDiff, RouterConfigChange
|
|
|
|
__all__ = [
|
|
"Tenant",
|
|
"User",
|
|
"UserRole",
|
|
"Device",
|
|
"DeviceGroup",
|
|
"DeviceTag",
|
|
"DeviceGroupMembership",
|
|
"DeviceTagAssignment",
|
|
"DeviceStatus",
|
|
"AlertRule",
|
|
"NotificationChannel",
|
|
"AlertRuleChannel",
|
|
"AlertEvent",
|
|
"FirmwareVersion",
|
|
"FirmwareUpgradeJob",
|
|
"ConfigTemplate",
|
|
"ConfigTemplateTag",
|
|
"TemplatePushJob",
|
|
"AuditLog",
|
|
"MaintenanceWindow",
|
|
"ApiKey",
|
|
"RouterConfigSnapshot",
|
|
"RouterConfigDiff",
|
|
"RouterConfigChange",
|
|
]
|