Merge pull request #21503 from netbox-community/21500-enable-linting-for-all-ordering-ruf022
Closes #21500: Enable RUF022 to enforce sorted `__all__` lists
This commit is contained in:
commit
32e2a17c88
|
|
@ -29,9 +29,9 @@ from tenancy.api.serializers_.tenants import TenantSerializer
|
||||||
from .providers import ProviderAccountSerializer, ProviderNetworkSerializer, ProviderSerializer
|
from .providers import ProviderAccountSerializer, ProviderNetworkSerializer, ProviderSerializer
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'CircuitSerializer',
|
|
||||||
'CircuitGroupAssignmentSerializer',
|
'CircuitGroupAssignmentSerializer',
|
||||||
'CircuitGroupSerializer',
|
'CircuitGroupSerializer',
|
||||||
|
'CircuitSerializer',
|
||||||
'CircuitTerminationSerializer',
|
'CircuitTerminationSerializer',
|
||||||
'CircuitTypeSerializer',
|
'CircuitTypeSerializer',
|
||||||
'VirtualCircuitSerializer',
|
'VirtualCircuitSerializer',
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,9 @@ __all__ = (
|
||||||
'CircuitGroupFilterSet',
|
'CircuitGroupFilterSet',
|
||||||
'CircuitTerminationFilterSet',
|
'CircuitTerminationFilterSet',
|
||||||
'CircuitTypeFilterSet',
|
'CircuitTypeFilterSet',
|
||||||
'ProviderNetworkFilterSet',
|
|
||||||
'ProviderAccountFilterSet',
|
'ProviderAccountFilterSet',
|
||||||
'ProviderFilterSet',
|
'ProviderFilterSet',
|
||||||
|
'ProviderNetworkFilterSet',
|
||||||
'VirtualCircuitFilterSet',
|
'VirtualCircuitFilterSet',
|
||||||
'VirtualCircuitTerminationFilterSet',
|
'VirtualCircuitTerminationFilterSet',
|
||||||
'VirtualCircuitTypeFilterSet',
|
'VirtualCircuitTypeFilterSet',
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@ __all__ = (
|
||||||
'CircuitGroupBulkEditForm',
|
'CircuitGroupBulkEditForm',
|
||||||
'CircuitTerminationBulkEditForm',
|
'CircuitTerminationBulkEditForm',
|
||||||
'CircuitTypeBulkEditForm',
|
'CircuitTypeBulkEditForm',
|
||||||
'ProviderBulkEditForm',
|
|
||||||
'ProviderAccountBulkEditForm',
|
'ProviderAccountBulkEditForm',
|
||||||
|
'ProviderBulkEditForm',
|
||||||
'ProviderNetworkBulkEditForm',
|
'ProviderNetworkBulkEditForm',
|
||||||
'VirtualCircuitBulkEditForm',
|
'VirtualCircuitBulkEditForm',
|
||||||
'VirtualCircuitTerminationBulkEditForm',
|
'VirtualCircuitTerminationBulkEditForm',
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,14 @@ from tenancy.models import Tenant
|
||||||
from utilities.forms.fields import CSVChoiceField, CSVContentTypeField, CSVModelChoiceField, SlugField
|
from utilities.forms.fields import CSVChoiceField, CSVContentTypeField, CSVModelChoiceField, SlugField
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'CircuitImportForm',
|
|
||||||
'CircuitGroupAssignmentImportForm',
|
'CircuitGroupAssignmentImportForm',
|
||||||
'CircuitGroupImportForm',
|
'CircuitGroupImportForm',
|
||||||
|
'CircuitImportForm',
|
||||||
'CircuitTerminationImportForm',
|
'CircuitTerminationImportForm',
|
||||||
'CircuitTerminationImportRelatedForm',
|
'CircuitTerminationImportRelatedForm',
|
||||||
'CircuitTypeImportForm',
|
'CircuitTypeImportForm',
|
||||||
'ProviderImportForm',
|
|
||||||
'ProviderAccountImportForm',
|
'ProviderAccountImportForm',
|
||||||
|
'ProviderImportForm',
|
||||||
'ProviderNetworkImportForm',
|
'ProviderNetworkImportForm',
|
||||||
'VirtualCircuitImportForm',
|
'VirtualCircuitImportForm',
|
||||||
'VirtualCircuitTerminationImportForm',
|
'VirtualCircuitTerminationImportForm',
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,8 @@ __all__ = (
|
||||||
'CircuitGroupFilterForm',
|
'CircuitGroupFilterForm',
|
||||||
'CircuitTerminationFilterForm',
|
'CircuitTerminationFilterForm',
|
||||||
'CircuitTypeFilterForm',
|
'CircuitTypeFilterForm',
|
||||||
'ProviderFilterForm',
|
|
||||||
'ProviderAccountFilterForm',
|
'ProviderAccountFilterForm',
|
||||||
|
'ProviderFilterForm',
|
||||||
'ProviderNetworkFilterForm',
|
'ProviderNetworkFilterForm',
|
||||||
'VirtualCircuitFilterForm',
|
'VirtualCircuitFilterForm',
|
||||||
'VirtualCircuitTerminationFilterForm',
|
'VirtualCircuitTerminationFilterForm',
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ __all__ = (
|
||||||
'CircuitGroupForm',
|
'CircuitGroupForm',
|
||||||
'CircuitTerminationForm',
|
'CircuitTerminationForm',
|
||||||
'CircuitTypeForm',
|
'CircuitTypeForm',
|
||||||
'ProviderForm',
|
|
||||||
'ProviderAccountForm',
|
'ProviderAccountForm',
|
||||||
|
'ProviderForm',
|
||||||
'ProviderNetworkForm',
|
'ProviderNetworkForm',
|
||||||
'VirtualCircuitForm',
|
'VirtualCircuitForm',
|
||||||
'VirtualCircuitTerminationForm',
|
'VirtualCircuitTerminationForm',
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ import strawberry
|
||||||
from circuits.choices import *
|
from circuits.choices import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
'CircuitPriorityEnum',
|
||||||
'CircuitStatusEnum',
|
'CircuitStatusEnum',
|
||||||
'CircuitTerminationSideEnum',
|
'CircuitTerminationSideEnum',
|
||||||
'CircuitPriorityEnum',
|
|
||||||
'VirtualCircuitTerminationRoleEnum',
|
'VirtualCircuitTerminationRoleEnum',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ __all__ = (
|
||||||
'CircuitGroupFilter',
|
'CircuitGroupFilter',
|
||||||
'CircuitTerminationFilter',
|
'CircuitTerminationFilter',
|
||||||
'CircuitTypeFilter',
|
'CircuitTypeFilter',
|
||||||
'ProviderFilter',
|
|
||||||
'ProviderAccountFilter',
|
'ProviderAccountFilter',
|
||||||
|
'ProviderFilter',
|
||||||
'ProviderNetworkFilter',
|
'ProviderNetworkFilter',
|
||||||
'VirtualCircuitFilter',
|
'VirtualCircuitFilter',
|
||||||
'VirtualCircuitTerminationFilter',
|
'VirtualCircuitTerminationFilter',
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@ __all__ = (
|
||||||
'CircuitTerminationType',
|
'CircuitTerminationType',
|
||||||
'CircuitType',
|
'CircuitType',
|
||||||
'CircuitTypeType',
|
'CircuitTypeType',
|
||||||
'ProviderType',
|
|
||||||
'ProviderAccountType',
|
'ProviderAccountType',
|
||||||
'ProviderNetworkType',
|
'ProviderNetworkType',
|
||||||
|
'ProviderType',
|
||||||
'VirtualCircuitTerminationType',
|
'VirtualCircuitTerminationType',
|
||||||
'VirtualCircuitType',
|
'VirtualCircuitType',
|
||||||
'VirtualCircuitTypeType',
|
'VirtualCircuitTypeType',
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ from netbox.models import PrimaryModel
|
||||||
from netbox.models.features import ContactsMixin
|
from netbox.models.features import ContactsMixin
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ProviderNetwork',
|
|
||||||
'Provider',
|
'Provider',
|
||||||
'ProviderAccount',
|
'ProviderAccount',
|
||||||
|
'ProviderNetwork',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ from netbox.tables import PrimaryModelTable, columns
|
||||||
from tenancy.tables import ContactsColumnMixin
|
from tenancy.tables import ContactsColumnMixin
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ProviderTable',
|
|
||||||
'ProviderAccountTable',
|
'ProviderAccountTable',
|
||||||
'ProviderNetworkTable',
|
'ProviderNetworkTable',
|
||||||
|
'ProviderTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ from rest_framework import serializers
|
||||||
from rest_framework.reverse import reverse
|
from rest_framework.reverse import reverse
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'BackgroundTaskSerializer',
|
|
||||||
'BackgroundQueueSerializer',
|
'BackgroundQueueSerializer',
|
||||||
|
'BackgroundTaskSerializer',
|
||||||
'BackgroundWorkerSerializer',
|
'BackgroundWorkerSerializer',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,10 @@ if TYPE_CHECKING:
|
||||||
from users.graphql.filters import UserFilter
|
from users.graphql.filters import UserFilter
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
'ContentTypeFilter',
|
||||||
'DataFileFilter',
|
'DataFileFilter',
|
||||||
'DataSourceFilter',
|
'DataSourceFilter',
|
||||||
'ObjectChangeFilter',
|
'ObjectChangeFilter',
|
||||||
'ContentTypeFilter',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,8 @@ from .models import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'CableFilterSet',
|
'CableFilterSet',
|
||||||
'CabledObjectFilterSet',
|
|
||||||
'CableTerminationFilterSet',
|
'CableTerminationFilterSet',
|
||||||
|
'CabledObjectFilterSet',
|
||||||
'CommonInterfaceFilterSet',
|
'CommonInterfaceFilterSet',
|
||||||
'ConsoleConnectionFilterSet',
|
'ConsoleConnectionFilterSet',
|
||||||
'ConsolePortFilterSet',
|
'ConsolePortFilterSet',
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,9 @@ __all__ = (
|
||||||
'LocationBulkEditForm',
|
'LocationBulkEditForm',
|
||||||
'MACAddressBulkEditForm',
|
'MACAddressBulkEditForm',
|
||||||
'ManufacturerBulkEditForm',
|
'ManufacturerBulkEditForm',
|
||||||
'ModuleBulkEditForm',
|
|
||||||
'ModuleBayBulkEditForm',
|
'ModuleBayBulkEditForm',
|
||||||
'ModuleBayTemplateBulkEditForm',
|
'ModuleBayTemplateBulkEditForm',
|
||||||
|
'ModuleBulkEditForm',
|
||||||
'ModuleTypeBulkEditForm',
|
'ModuleTypeBulkEditForm',
|
||||||
'ModuleTypeProfileBulkEditForm',
|
'ModuleTypeProfileBulkEditForm',
|
||||||
'PlatformBulkEditForm',
|
'PlatformBulkEditForm',
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,8 @@ __all__ = (
|
||||||
'LocationImportForm',
|
'LocationImportForm',
|
||||||
'MACAddressImportForm',
|
'MACAddressImportForm',
|
||||||
'ManufacturerImportForm',
|
'ManufacturerImportForm',
|
||||||
'ModuleImportForm',
|
|
||||||
'ModuleBayImportForm',
|
'ModuleBayImportForm',
|
||||||
|
'ModuleImportForm',
|
||||||
'ModuleTypeImportForm',
|
'ModuleTypeImportForm',
|
||||||
'ModuleTypeProfileImportForm',
|
'ModuleTypeProfileImportForm',
|
||||||
'PlatformImportForm',
|
'PlatformImportForm',
|
||||||
|
|
@ -63,8 +63,8 @@ __all__ = (
|
||||||
'RackTypeImportForm',
|
'RackTypeImportForm',
|
||||||
'RearPortImportForm',
|
'RearPortImportForm',
|
||||||
'RegionImportForm',
|
'RegionImportForm',
|
||||||
'SiteImportForm',
|
|
||||||
'SiteGroupImportForm',
|
'SiteGroupImportForm',
|
||||||
|
'SiteImportForm',
|
||||||
'VirtualChassisImportForm',
|
'VirtualChassisImportForm',
|
||||||
'VirtualDeviceContextImportForm'
|
'VirtualDeviceContextImportForm'
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -44,14 +44,14 @@ __all__ = (
|
||||||
'InterfaceFilterForm',
|
'InterfaceFilterForm',
|
||||||
'InterfaceTemplateFilterForm',
|
'InterfaceTemplateFilterForm',
|
||||||
'InventoryItemFilterForm',
|
'InventoryItemFilterForm',
|
||||||
'InventoryItemTemplateFilterForm',
|
|
||||||
'InventoryItemRoleFilterForm',
|
'InventoryItemRoleFilterForm',
|
||||||
|
'InventoryItemTemplateFilterForm',
|
||||||
'LocationFilterForm',
|
'LocationFilterForm',
|
||||||
'MACAddressFilterForm',
|
'MACAddressFilterForm',
|
||||||
'ManufacturerFilterForm',
|
'ManufacturerFilterForm',
|
||||||
'ModuleFilterForm',
|
|
||||||
'ModuleBayFilterForm',
|
'ModuleBayFilterForm',
|
||||||
'ModuleBayTemplateFilterForm',
|
'ModuleBayTemplateFilterForm',
|
||||||
|
'ModuleFilterForm',
|
||||||
'ModuleTypeFilterForm',
|
'ModuleTypeFilterForm',
|
||||||
'ModuleTypeProfileFilterForm',
|
'ModuleTypeProfileFilterForm',
|
||||||
'PlatformFilterForm',
|
'PlatformFilterForm',
|
||||||
|
|
@ -62,8 +62,8 @@ __all__ = (
|
||||||
'PowerPanelFilterForm',
|
'PowerPanelFilterForm',
|
||||||
'PowerPortFilterForm',
|
'PowerPortFilterForm',
|
||||||
'PowerPortTemplateFilterForm',
|
'PowerPortTemplateFilterForm',
|
||||||
'RackFilterForm',
|
|
||||||
'RackElevationFilterForm',
|
'RackElevationFilterForm',
|
||||||
|
'RackFilterForm',
|
||||||
'RackReservationFilterForm',
|
'RackReservationFilterForm',
|
||||||
'RackRoleFilterForm',
|
'RackRoleFilterForm',
|
||||||
'RackTypeFilterForm',
|
'RackTypeFilterForm',
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,9 @@ __all__ = (
|
||||||
'LocationForm',
|
'LocationForm',
|
||||||
'MACAddressForm',
|
'MACAddressForm',
|
||||||
'ManufacturerForm',
|
'ManufacturerForm',
|
||||||
'ModuleForm',
|
|
||||||
'ModuleBayForm',
|
'ModuleBayForm',
|
||||||
'ModuleBayTemplateForm',
|
'ModuleBayTemplateForm',
|
||||||
|
'ModuleForm',
|
||||||
'ModuleTypeForm',
|
'ModuleTypeForm',
|
||||||
'ModuleTypeProfileForm',
|
'ModuleTypeProfileForm',
|
||||||
'PlatformForm',
|
'PlatformForm',
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,9 @@ __all__ = (
|
||||||
'ConsolePortTemplateFilter',
|
'ConsolePortTemplateFilter',
|
||||||
'ConsoleServerPortFilter',
|
'ConsoleServerPortFilter',
|
||||||
'ConsoleServerPortTemplateFilter',
|
'ConsoleServerPortTemplateFilter',
|
||||||
'DeviceFilter',
|
|
||||||
'DeviceBayFilter',
|
'DeviceBayFilter',
|
||||||
'DeviceBayTemplateFilter',
|
'DeviceBayTemplateFilter',
|
||||||
|
'DeviceFilter',
|
||||||
'DeviceRoleFilter',
|
'DeviceRoleFilter',
|
||||||
'DeviceTypeFilter',
|
'DeviceTypeFilter',
|
||||||
'FrontPortFilter',
|
'FrontPortFilter',
|
||||||
|
|
@ -78,9 +78,9 @@ __all__ = (
|
||||||
'LocationFilter',
|
'LocationFilter',
|
||||||
'MACAddressFilter',
|
'MACAddressFilter',
|
||||||
'ManufacturerFilter',
|
'ManufacturerFilter',
|
||||||
'ModuleFilter',
|
|
||||||
'ModuleBayFilter',
|
'ModuleBayFilter',
|
||||||
'ModuleBayTemplateFilter',
|
'ModuleBayTemplateFilter',
|
||||||
|
'ModuleFilter',
|
||||||
'ModuleTypeFilter',
|
'ModuleTypeFilter',
|
||||||
'ModuleTypeProfileFilter',
|
'ModuleTypeProfileFilter',
|
||||||
'PlatformFilter',
|
'PlatformFilter',
|
||||||
|
|
|
||||||
|
|
@ -41,47 +41,47 @@ if TYPE_CHECKING:
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'CableType',
|
'CableType',
|
||||||
'ComponentType',
|
'ComponentType',
|
||||||
'ConsolePortType',
|
|
||||||
'ConsolePortTemplateType',
|
'ConsolePortTemplateType',
|
||||||
'ConsoleServerPortType',
|
'ConsolePortType',
|
||||||
'ConsoleServerPortTemplateType',
|
'ConsoleServerPortTemplateType',
|
||||||
'DeviceType',
|
'ConsoleServerPortType',
|
||||||
'DeviceBayType',
|
|
||||||
'DeviceBayTemplateType',
|
'DeviceBayTemplateType',
|
||||||
|
'DeviceBayType',
|
||||||
'DeviceRoleType',
|
'DeviceRoleType',
|
||||||
|
'DeviceType',
|
||||||
'DeviceTypeType',
|
'DeviceTypeType',
|
||||||
'FrontPortType',
|
|
||||||
'FrontPortTemplateType',
|
'FrontPortTemplateType',
|
||||||
'InterfaceType',
|
'FrontPortType',
|
||||||
'InterfaceTemplateType',
|
'InterfaceTemplateType',
|
||||||
'InventoryItemType',
|
'InterfaceType',
|
||||||
'InventoryItemRoleType',
|
'InventoryItemRoleType',
|
||||||
'InventoryItemTemplateType',
|
'InventoryItemTemplateType',
|
||||||
|
'InventoryItemType',
|
||||||
'LocationType',
|
'LocationType',
|
||||||
'MACAddressType',
|
'MACAddressType',
|
||||||
'ManufacturerType',
|
'ManufacturerType',
|
||||||
'ModularComponentType',
|
'ModularComponentType',
|
||||||
'ModuleType',
|
|
||||||
'ModuleBayType',
|
|
||||||
'ModuleBayTemplateType',
|
'ModuleBayTemplateType',
|
||||||
|
'ModuleBayType',
|
||||||
|
'ModuleType',
|
||||||
'ModuleTypeProfileType',
|
'ModuleTypeProfileType',
|
||||||
'ModuleTypeType',
|
'ModuleTypeType',
|
||||||
'PlatformType',
|
'PlatformType',
|
||||||
'PowerFeedType',
|
'PowerFeedType',
|
||||||
'PowerOutletType',
|
|
||||||
'PowerOutletTemplateType',
|
'PowerOutletTemplateType',
|
||||||
|
'PowerOutletType',
|
||||||
'PowerPanelType',
|
'PowerPanelType',
|
||||||
'PowerPortType',
|
|
||||||
'PowerPortTemplateType',
|
'PowerPortTemplateType',
|
||||||
'RackType',
|
'PowerPortType',
|
||||||
'RackReservationType',
|
'RackReservationType',
|
||||||
'RackRoleType',
|
'RackRoleType',
|
||||||
|
'RackType',
|
||||||
'RackTypeType',
|
'RackTypeType',
|
||||||
'RearPortType',
|
|
||||||
'RearPortTemplateType',
|
'RearPortTemplateType',
|
||||||
|
'RearPortType',
|
||||||
'RegionType',
|
'RegionType',
|
||||||
'SiteType',
|
|
||||||
'SiteGroupType',
|
'SiteGroupType',
|
||||||
|
'SiteType',
|
||||||
'VirtualChassisType',
|
'VirtualChassisType',
|
||||||
'VirtualDeviceContextType',
|
'VirtualDeviceContextType',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -21,14 +21,14 @@ __all__ = (
|
||||||
'DeviceInterfaceTable',
|
'DeviceInterfaceTable',
|
||||||
'DeviceInventoryItemTable',
|
'DeviceInventoryItemTable',
|
||||||
'DeviceModuleBayTable',
|
'DeviceModuleBayTable',
|
||||||
'DevicePowerPortTable',
|
|
||||||
'DevicePowerOutletTable',
|
'DevicePowerOutletTable',
|
||||||
|
'DevicePowerPortTable',
|
||||||
'DeviceRearPortTable',
|
'DeviceRearPortTable',
|
||||||
'DeviceRoleTable',
|
'DeviceRoleTable',
|
||||||
'DeviceTable',
|
'DeviceTable',
|
||||||
'FrontPortTable',
|
'FrontPortTable',
|
||||||
'InterfaceTable',
|
|
||||||
'InterfaceLAGMemberTable',
|
'InterfaceLAGMemberTable',
|
||||||
|
'InterfaceTable',
|
||||||
'InventoryItemRoleTable',
|
'InventoryItemRoleTable',
|
||||||
'InventoryItemTable',
|
'InventoryItemTable',
|
||||||
'MACAddressTable',
|
'MACAddressTable',
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ from tenancy.tables import ContactsColumnMixin, TenancyColumnsMixin
|
||||||
from .template_code import OUTER_UNIT, WEIGHT
|
from .template_code import OUTER_UNIT, WEIGHT
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'RackTable',
|
|
||||||
'RackReservationTable',
|
'RackReservationTable',
|
||||||
'RackRoleTable',
|
'RackRoleTable',
|
||||||
|
'RackTable',
|
||||||
'RackTypeTable',
|
'RackTypeTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ from .template_code import LOCATION_BUTTONS
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'LocationTable',
|
'LocationTable',
|
||||||
'RegionTable',
|
'RegionTable',
|
||||||
'SiteTable',
|
|
||||||
'SiteGroupTable',
|
'SiteGroupTable',
|
||||||
|
'SiteTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ from users.api.serializers_.users import GroupSerializer, UserSerializer
|
||||||
from users.models import Group, User
|
from users.models import Group, User
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'NotificationSerializer',
|
|
||||||
'NotificationGroupSerializer',
|
'NotificationGroupSerializer',
|
||||||
|
'NotificationSerializer',
|
||||||
'SubscriptionSerializer',
|
'SubscriptionSerializer',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,10 @@ if TYPE_CHECKING:
|
||||||
from .filters import *
|
from .filters import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
'ConfigContextFilterMixin',
|
||||||
'CustomFieldsFilterMixin',
|
'CustomFieldsFilterMixin',
|
||||||
'JournalEntriesFilterMixin',
|
'JournalEntriesFilterMixin',
|
||||||
'TagsFilterMixin',
|
'TagsFilterMixin',
|
||||||
'ConfigContextFilterMixin',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@ __all__ = (
|
||||||
'ConfigContextFilter',
|
'ConfigContextFilter',
|
||||||
'ConfigContextProfileFilter',
|
'ConfigContextProfileFilter',
|
||||||
'ConfigTemplateFilter',
|
'ConfigTemplateFilter',
|
||||||
'CustomFieldFilter',
|
|
||||||
'CustomFieldChoiceSetFilter',
|
'CustomFieldChoiceSetFilter',
|
||||||
|
'CustomFieldFilter',
|
||||||
'CustomLinkFilter',
|
'CustomLinkFilter',
|
||||||
'EventRuleFilter',
|
'EventRuleFilter',
|
||||||
'ExportTemplateFilter',
|
'ExportTemplateFilter',
|
||||||
|
|
|
||||||
|
|
@ -24,14 +24,14 @@ __all__ = (
|
||||||
'BaseScript',
|
'BaseScript',
|
||||||
'BooleanVar',
|
'BooleanVar',
|
||||||
'ChoiceVar',
|
'ChoiceVar',
|
||||||
'DateVar',
|
|
||||||
'DateTimeVar',
|
'DateTimeVar',
|
||||||
'FileVar',
|
'DateVar',
|
||||||
'IntegerVar',
|
|
||||||
'DecimalVar',
|
'DecimalVar',
|
||||||
|
'FileVar',
|
||||||
'IPAddressVar',
|
'IPAddressVar',
|
||||||
'IPAddressWithMaskVar',
|
'IPAddressWithMaskVar',
|
||||||
'IPNetworkVar',
|
'IPNetworkVar',
|
||||||
|
'IntegerVar',
|
||||||
'MultiChoiceVar',
|
'MultiChoiceVar',
|
||||||
'MultiObjectVar',
|
'MultiObjectVar',
|
||||||
'ObjectVar',
|
'ObjectVar',
|
||||||
|
|
|
||||||
|
|
@ -28,14 +28,14 @@ __all__ = (
|
||||||
'JournalEntryTable',
|
'JournalEntryTable',
|
||||||
'NotificationGroupTable',
|
'NotificationGroupTable',
|
||||||
'NotificationTable',
|
'NotificationTable',
|
||||||
'SavedFilterTable',
|
|
||||||
'ReportResultsTable',
|
'ReportResultsTable',
|
||||||
'ScriptResultsTable',
|
'SavedFilterTable',
|
||||||
'ScriptJobTable',
|
'ScriptJobTable',
|
||||||
|
'ScriptResultsTable',
|
||||||
'SubscriptionTable',
|
'SubscriptionTable',
|
||||||
'TableConfigTable',
|
'TableConfigTable',
|
||||||
'TaggedItemTable',
|
|
||||||
'TagTable',
|
'TagTable',
|
||||||
|
'TaggedItemTable',
|
||||||
'WebhookTable',
|
'WebhookTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ from .vrfs import VRFSerializer
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'AggregateSerializer',
|
'AggregateSerializer',
|
||||||
'AvailableIPSerializer',
|
|
||||||
'AvailableIPRequestSerializer',
|
'AvailableIPRequestSerializer',
|
||||||
|
'AvailableIPSerializer',
|
||||||
'AvailablePrefixSerializer',
|
'AvailablePrefixSerializer',
|
||||||
'IPAddressSerializer',
|
'IPAddressSerializer',
|
||||||
'IPRangeSerializer',
|
'IPRangeSerializer',
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,9 @@ from .choices import *
|
||||||
from .models import *
|
from .models import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'AggregateFilterSet',
|
|
||||||
'ASNFilterSet',
|
'ASNFilterSet',
|
||||||
'ASNRangeFilterSet',
|
'ASNRangeFilterSet',
|
||||||
|
'AggregateFilterSet',
|
||||||
'FHRPGroupAssignmentFilterSet',
|
'FHRPGroupAssignmentFilterSet',
|
||||||
'FHRPGroupFilterSet',
|
'FHRPGroupFilterSet',
|
||||||
'IPAddressFilterSet',
|
'IPAddressFilterSet',
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,9 @@ from utilities.forms.widgets import BulkEditNullBooleanSelect, HTMXSelect
|
||||||
from utilities.templatetags.builtins.filters import bettertitle
|
from utilities.templatetags.builtins.filters import bettertitle
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'AggregateBulkEditForm',
|
|
||||||
'ASNBulkEditForm',
|
'ASNBulkEditForm',
|
||||||
'ASNRangeBulkEditForm',
|
'ASNRangeBulkEditForm',
|
||||||
|
'AggregateBulkEditForm',
|
||||||
'FHRPGroupBulkEditForm',
|
'FHRPGroupBulkEditForm',
|
||||||
'IPAddressBulkEditForm',
|
'IPAddressBulkEditForm',
|
||||||
'IPRangeBulkEditForm',
|
'IPRangeBulkEditForm',
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,9 @@ from utilities.forms.fields import (
|
||||||
from virtualization.models import VirtualMachine, VMInterface
|
from virtualization.models import VirtualMachine, VMInterface
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'AggregateImportForm',
|
|
||||||
'ASNImportForm',
|
'ASNImportForm',
|
||||||
'ASNRangeImportForm',
|
'ASNRangeImportForm',
|
||||||
|
'AggregateImportForm',
|
||||||
'FHRPGroupImportForm',
|
'FHRPGroupImportForm',
|
||||||
'IPAddressImportForm',
|
'IPAddressImportForm',
|
||||||
'IPRangeImportForm',
|
'IPRangeImportForm',
|
||||||
|
|
@ -32,8 +32,8 @@ __all__ = (
|
||||||
'RouteTargetImportForm',
|
'RouteTargetImportForm',
|
||||||
'ServiceImportForm',
|
'ServiceImportForm',
|
||||||
'ServiceTemplateImportForm',
|
'ServiceTemplateImportForm',
|
||||||
'VLANImportForm',
|
|
||||||
'VLANGroupImportForm',
|
'VLANGroupImportForm',
|
||||||
|
'VLANImportForm',
|
||||||
'VLANTranslationPolicyImportForm',
|
'VLANTranslationPolicyImportForm',
|
||||||
'VLANTranslationRuleImportForm',
|
'VLANTranslationRuleImportForm',
|
||||||
'VRFImportForm',
|
'VRFImportForm',
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@ from virtualization.models import Cluster, ClusterGroup, VirtualMachine
|
||||||
from vpn.models import L2VPN
|
from vpn.models import L2VPN
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'AggregateFilterForm',
|
|
||||||
'ASNFilterForm',
|
'ASNFilterForm',
|
||||||
'ASNRangeFilterForm',
|
'ASNRangeFilterForm',
|
||||||
|
'AggregateFilterForm',
|
||||||
'FHRPGroupFilterForm',
|
'FHRPGroupFilterForm',
|
||||||
'IPAddressFilterForm',
|
'IPAddressFilterForm',
|
||||||
'IPRangeFilterForm',
|
'IPRangeFilterForm',
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,11 @@ from utilities.templatetags.builtins.filters import bettertitle
|
||||||
from virtualization.models import VirtualMachine, VMInterface
|
from virtualization.models import VirtualMachine, VMInterface
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'AggregateForm',
|
|
||||||
'ASNForm',
|
'ASNForm',
|
||||||
'ASNRangeForm',
|
'ASNRangeForm',
|
||||||
'FHRPGroupForm',
|
'AggregateForm',
|
||||||
'FHRPGroupAssignmentForm',
|
'FHRPGroupAssignmentForm',
|
||||||
|
'FHRPGroupForm',
|
||||||
'IPAddressAssignForm',
|
'IPAddressAssignForm',
|
||||||
'IPAddressBulkAddForm',
|
'IPAddressBulkAddForm',
|
||||||
'IPAddressForm',
|
'IPAddressForm',
|
||||||
|
|
@ -41,8 +41,8 @@ __all__ = (
|
||||||
'RIRForm',
|
'RIRForm',
|
||||||
'RoleForm',
|
'RoleForm',
|
||||||
'RouteTargetForm',
|
'RouteTargetForm',
|
||||||
'ServiceForm',
|
|
||||||
'ServiceCreateForm',
|
'ServiceCreateForm',
|
||||||
|
'ServiceForm',
|
||||||
'ServiceTemplateForm',
|
'ServiceTemplateForm',
|
||||||
'VLANForm',
|
'VLANForm',
|
||||||
'VLANGroupForm',
|
'VLANGroupForm',
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ __all__ = (
|
||||||
'IPRangeStatusEnum',
|
'IPRangeStatusEnum',
|
||||||
'PrefixStatusEnum',
|
'PrefixStatusEnum',
|
||||||
'ServiceProtocolEnum',
|
'ServiceProtocolEnum',
|
||||||
'VLANStatusEnum',
|
|
||||||
'VLANQinQRoleEnum',
|
'VLANQinQRoleEnum',
|
||||||
|
'VLANStatusEnum',
|
||||||
)
|
)
|
||||||
|
|
||||||
FHRPGroupAuthTypeEnum = strawberry.enum(FHRPGroupAuthTypeChoices.as_enum(prefix='authentication'))
|
FHRPGroupAuthTypeEnum = strawberry.enum(FHRPGroupAuthTypeChoices.as_enum(prefix='authentication'))
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ __all__ = (
|
||||||
'ASNFilter',
|
'ASNFilter',
|
||||||
'ASNRangeFilter',
|
'ASNRangeFilter',
|
||||||
'AggregateFilter',
|
'AggregateFilter',
|
||||||
'FHRPGroupFilter',
|
|
||||||
'FHRPGroupAssignmentFilter',
|
'FHRPGroupAssignmentFilter',
|
||||||
|
'FHRPGroupFilter',
|
||||||
'IPAddressFilter',
|
'IPAddressFilter',
|
||||||
'IPRangeFilter',
|
'IPRangeFilter',
|
||||||
'PrefixFilter',
|
'PrefixFilter',
|
||||||
|
|
|
||||||
|
|
@ -28,23 +28,23 @@ if TYPE_CHECKING:
|
||||||
from wireless.graphql.types import WirelessLANType
|
from wireless.graphql.types import WirelessLANType
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ASNType',
|
|
||||||
'ASNRangeType',
|
'ASNRangeType',
|
||||||
|
'ASNType',
|
||||||
'AggregateType',
|
'AggregateType',
|
||||||
'FHRPGroupType',
|
|
||||||
'FHRPGroupAssignmentType',
|
'FHRPGroupAssignmentType',
|
||||||
|
'FHRPGroupType',
|
||||||
'IPAddressType',
|
'IPAddressType',
|
||||||
'IPRangeType',
|
'IPRangeType',
|
||||||
'PrefixType',
|
'PrefixType',
|
||||||
'RIRType',
|
'RIRType',
|
||||||
'RoleType',
|
'RoleType',
|
||||||
'RouteTargetType',
|
'RouteTargetType',
|
||||||
'ServiceType',
|
|
||||||
'ServiceTemplateType',
|
'ServiceTemplateType',
|
||||||
'VLANType',
|
'ServiceType',
|
||||||
'VLANGroupType',
|
'VLANGroupType',
|
||||||
'VLANTranslationPolicyType',
|
'VLANTranslationPolicyType',
|
||||||
'VLANTranslationRuleType',
|
'VLANTranslationRuleType',
|
||||||
|
'VLANType',
|
||||||
'VRFType',
|
'VRFType',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,11 @@ from netbox.models import OrganizationalModel, PrimaryModel
|
||||||
from netbox.models.features import ContactsMixin
|
from netbox.models.features import ContactsMixin
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
'RIR',
|
||||||
'Aggregate',
|
'Aggregate',
|
||||||
'IPAddress',
|
'IPAddress',
|
||||||
'IPRange',
|
'IPRange',
|
||||||
'Prefix',
|
'Prefix',
|
||||||
'RIR',
|
|
||||||
'Role',
|
'Role',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ from ipam.constants import *
|
||||||
from netbox.models import PrimaryModel
|
from netbox.models import PrimaryModel
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'RouteTarget',
|
|
||||||
'VRF',
|
'VRF',
|
||||||
|
'RouteTarget',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ from netbox.tables import OrganizationalModelTable, PrimaryModelTable, columns
|
||||||
from tenancy.tables import ContactsColumnMixin, TenancyColumnsMixin
|
from tenancy.tables import ContactsColumnMixin, TenancyColumnsMixin
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ASNTable',
|
|
||||||
'ASNRangeTable',
|
'ASNRangeTable',
|
||||||
|
'ASNTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ from ipam.models import *
|
||||||
from netbox.tables import NetBoxTable, PrimaryModelTable, columns
|
from netbox.tables import NetBoxTable, PrimaryModelTable, columns
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'FHRPGroupTable',
|
|
||||||
'FHRPGroupAssignmentTable',
|
'FHRPGroupAssignmentTable',
|
||||||
|
'FHRPGroupTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ __all__ = (
|
||||||
'VLANGroupTable',
|
'VLANGroupTable',
|
||||||
'VLANMembersTable',
|
'VLANMembersTable',
|
||||||
'VLANTable',
|
'VLANTable',
|
||||||
'VLANVirtualMachinesTable',
|
|
||||||
'VLANTranslationPolicyTable',
|
'VLANTranslationPolicyTable',
|
||||||
'VLANTranslationRuleTable',
|
'VLANTranslationRuleTable',
|
||||||
|
'VLANVirtualMachinesTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
AVAILABLE_LABEL = mark_safe('<span class="badge text-bg-success">Available</span>')
|
AVAILABLE_LABEL = mark_safe('<span class="badge text-bg-success">Available</span>')
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ from utilities.query import reapply_model_ordering
|
||||||
from . import mixins
|
from . import mixins
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'NetBoxReadOnlyModelViewSet',
|
|
||||||
'NetBoxModelViewSet',
|
'NetBoxModelViewSet',
|
||||||
|
'NetBoxReadOnlyModelViewSet',
|
||||||
)
|
)
|
||||||
|
|
||||||
HTTP_ACTIONS = {
|
HTTP_ACTIONS = {
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ from utilities.constants import CSV_DELIMITERS
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ButtonColorChoices',
|
'ButtonColorChoices',
|
||||||
'ColorChoices',
|
|
||||||
'CSVDelimiterChoices',
|
'CSVDelimiterChoices',
|
||||||
|
'ColorChoices',
|
||||||
'DistanceUnitChoices',
|
'DistanceUnitChoices',
|
||||||
'ImportFormatChoices',
|
'ImportFormatChoices',
|
||||||
'ImportMethodChoices',
|
'ImportMethodChoices',
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ from django.utils.translation import gettext_lazy as _
|
||||||
from .parameters import PARAMS
|
from .parameters import PARAMS
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'clear_config',
|
|
||||||
'ConfigItem',
|
|
||||||
'get_config',
|
|
||||||
'PARAMS',
|
'PARAMS',
|
||||||
|
'ConfigItem',
|
||||||
|
'clear_config',
|
||||||
|
'get_config',
|
||||||
)
|
)
|
||||||
|
|
||||||
_thread_locals = threading.local()
|
_thread_locals = threading.local()
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ __all__ = (
|
||||||
'EVENT_TYPE_KIND_SUCCESS',
|
'EVENT_TYPE_KIND_SUCCESS',
|
||||||
'EVENT_TYPE_KIND_WARNING',
|
'EVENT_TYPE_KIND_WARNING',
|
||||||
'EventType',
|
'EventType',
|
||||||
|
'get_event_text',
|
||||||
'get_event_type',
|
'get_event_type',
|
||||||
'get_event_type_choices',
|
'get_event_type_choices',
|
||||||
'get_event_text',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ from utilities.forms.fields import DynamicModelChoiceField, DynamicModelMultiple
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ChangelogMessageMixin',
|
'ChangelogMessageMixin',
|
||||||
'CustomFieldsMixin',
|
'CustomFieldsMixin',
|
||||||
'OwnerMixin',
|
|
||||||
'OwnerFilterMixin',
|
'OwnerFilterMixin',
|
||||||
|
'OwnerMixin',
|
||||||
'SavedFiltersMixin',
|
'SavedFiltersMixin',
|
||||||
'TagsMixin',
|
'TagsMixin',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@ from dataclasses import dataclass
|
||||||
from django.urls import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'get_model_item',
|
|
||||||
'get_model_buttons',
|
|
||||||
'Menu',
|
'Menu',
|
||||||
'MenuGroup',
|
'MenuGroup',
|
||||||
'MenuItem',
|
'MenuItem',
|
||||||
'MenuItemButton',
|
'MenuItemButton',
|
||||||
|
'get_model_buttons',
|
||||||
|
'get_model_item',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,9 @@ __all__ = (
|
||||||
'DistanceColumn',
|
'DistanceColumn',
|
||||||
'DurationColumn',
|
'DurationColumn',
|
||||||
'LinkedCountColumn',
|
'LinkedCountColumn',
|
||||||
'MarkdownColumn',
|
|
||||||
'ManyToManyColumn',
|
|
||||||
'MPTTColumn',
|
'MPTTColumn',
|
||||||
|
'ManyToManyColumn',
|
||||||
|
'MarkdownColumn',
|
||||||
'TagColumn',
|
'TagColumn',
|
||||||
'TemplateColumn',
|
'TemplateColumn',
|
||||||
'ToggleColumn',
|
'ToggleColumn',
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ from utilities.data import resolve_attr_path
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'AddressAttr',
|
'AddressAttr',
|
||||||
'BooleanAttr',
|
'BooleanAttr',
|
||||||
'ColorAttr',
|
|
||||||
'ChoiceAttr',
|
'ChoiceAttr',
|
||||||
'GenericForeignKeyAttr',
|
'ColorAttr',
|
||||||
'GPSCoordinatesAttr',
|
'GPSCoordinatesAttr',
|
||||||
|
'GenericForeignKeyAttr',
|
||||||
'ImageAttr',
|
'ImageAttr',
|
||||||
'NestedObjectAttr',
|
'NestedObjectAttr',
|
||||||
'NumericAttr',
|
'NumericAttr',
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ from django.views.generic import View
|
||||||
from netbox.plugins.utils import get_installed_plugins
|
from netbox.plugins.utils import get_installed_plugins
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
'StaticMediaFailureView',
|
||||||
'handler_404',
|
'handler_404',
|
||||||
'handler_500',
|
'handler_500',
|
||||||
'StaticMediaFailureView',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ from django.views.generic import View
|
||||||
from utilities.views import ObjectPermissionRequiredMixin
|
from utilities.views import ObjectPermissionRequiredMixin
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'BaseObjectView',
|
|
||||||
'BaseMultiObjectView',
|
'BaseMultiObjectView',
|
||||||
|
'BaseObjectView',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@ from ..models import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ContactAssignmentImportForm',
|
'ContactAssignmentImportForm',
|
||||||
'ContactImportForm',
|
|
||||||
'ContactGroupImportForm',
|
'ContactGroupImportForm',
|
||||||
|
'ContactImportForm',
|
||||||
'ContactRoleImportForm',
|
'ContactRoleImportForm',
|
||||||
'TenantImportForm',
|
|
||||||
'TenantGroupImportForm',
|
'TenantGroupImportForm',
|
||||||
|
'TenantImportForm',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ from ..models import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ContactModelFilterForm',
|
'ContactModelFilterForm',
|
||||||
'TenancyForm',
|
|
||||||
'TenancyFilterForm',
|
'TenancyFilterForm',
|
||||||
|
'TenancyForm',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,12 +49,12 @@ if TYPE_CHECKING:
|
||||||
from .enums import *
|
from .enums import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
'ContactAssignmentFilter',
|
||||||
|
'ContactFilter',
|
||||||
|
'ContactGroupFilter',
|
||||||
|
'ContactRoleFilter',
|
||||||
'TenantFilter',
|
'TenantFilter',
|
||||||
'TenantGroupFilter',
|
'TenantGroupFilter',
|
||||||
'ContactFilter',
|
|
||||||
'ContactRoleFilter',
|
|
||||||
'ContactGroupFilter',
|
|
||||||
'ContactAssignmentFilter',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,8 @@ __all__ = (
|
||||||
'ContactGroupType',
|
'ContactGroupType',
|
||||||
'ContactRoleType',
|
'ContactRoleType',
|
||||||
'ContactType',
|
'ContactType',
|
||||||
'TenantType',
|
|
||||||
'TenantGroupType',
|
'TenantGroupType',
|
||||||
|
'TenantType',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ from netbox.models.features import CustomFieldsMixin, ExportTemplatesMixin, Tags
|
||||||
from tenancy.choices import *
|
from tenancy.choices import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ContactAssignment',
|
|
||||||
'Contact',
|
'Contact',
|
||||||
|
'ContactAssignment',
|
||||||
'ContactGroup',
|
'ContactGroup',
|
||||||
'ContactRole',
|
'ContactRole',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ from .template_code import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ContactsColumnMixin',
|
'ContactsColumnMixin',
|
||||||
|
'TenancyColumnsMixin',
|
||||||
'TenantColumn',
|
'TenantColumn',
|
||||||
'TenantGroupColumn',
|
'TenantGroupColumn',
|
||||||
'TenancyColumnsMixin',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ __all__ = (
|
||||||
'ObjectPermissionBulkEditForm',
|
'ObjectPermissionBulkEditForm',
|
||||||
'OwnerBulkEditForm',
|
'OwnerBulkEditForm',
|
||||||
'OwnerGroupBulkEditForm',
|
'OwnerGroupBulkEditForm',
|
||||||
'UserBulkEditForm',
|
|
||||||
'TokenBulkEditForm',
|
'TokenBulkEditForm',
|
||||||
|
'UserBulkEditForm',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ __all__ = (
|
||||||
'GroupImportForm',
|
'GroupImportForm',
|
||||||
'OwnerGroupImportForm',
|
'OwnerGroupImportForm',
|
||||||
'OwnerImportForm',
|
'OwnerImportForm',
|
||||||
'UserImportForm',
|
|
||||||
'TokenImportForm',
|
'TokenImportForm',
|
||||||
|
'UserImportForm',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ __all__ = (
|
||||||
'BulkDeleteForm',
|
'BulkDeleteForm',
|
||||||
'BulkEditForm',
|
'BulkEditForm',
|
||||||
'BulkRenameForm',
|
'BulkRenameForm',
|
||||||
'ConfirmationForm',
|
|
||||||
'CSVModelForm',
|
'CSVModelForm',
|
||||||
|
'ConfirmationForm',
|
||||||
'DeleteForm',
|
'DeleteForm',
|
||||||
'FilterForm',
|
'FilterForm',
|
||||||
'TableConfigForm',
|
'TableConfigForm',
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@ from utilities.forms.widgets import FilterModifierWidget
|
||||||
from utilities.forms.widgets.modifiers import MODIFIER_EMPTY_FALSE, MODIFIER_EMPTY_TRUE
|
from utilities.forms.widgets.modifiers import MODIFIER_EMPTY_FALSE, MODIFIER_EMPTY_TRUE
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
'FORM_FIELD_LOOKUPS',
|
||||||
'BackgroundJobMixin',
|
'BackgroundJobMixin',
|
||||||
'CheckLastUpdatedMixin',
|
'CheckLastUpdatedMixin',
|
||||||
'DistanceValidationMixin',
|
'DistanceValidationMixin',
|
||||||
'FilterModifierMixin',
|
'FilterModifierMixin',
|
||||||
'FORM_FIELD_LOOKUPS',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ __all__ = (
|
||||||
'get_field_value',
|
'get_field_value',
|
||||||
'get_selected_values',
|
'get_selected_values',
|
||||||
'parse_alphanumeric_range',
|
'parse_alphanumeric_range',
|
||||||
|
'parse_csv',
|
||||||
'parse_numeric_range',
|
'parse_numeric_range',
|
||||||
'restrict_form_fields',
|
'restrict_form_fields',
|
||||||
'parse_csv',
|
|
||||||
'validate_csv',
|
'validate_csv',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ from django.utils.translation import gettext_lazy as _
|
||||||
from utilities.forms.widgets.apiselect import APISelect, APISelectMultiple
|
from utilities.forms.widgets.apiselect import APISelect, APISelectMultiple
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'FilterModifierWidget',
|
|
||||||
'MODIFIER_EMPTY_FALSE',
|
'MODIFIER_EMPTY_FALSE',
|
||||||
'MODIFIER_EMPTY_TRUE',
|
'MODIFIER_EMPTY_TRUE',
|
||||||
|
'FilterModifierWidget',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Modifier codes for empty/null checking
|
# Modifier codes for empty/null checking
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ from django.urls import reverse
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'htmx_current_url',
|
'htmx_current_url',
|
||||||
'htmx_partial',
|
|
||||||
'htmx_maybe_redirect_current_page',
|
'htmx_maybe_redirect_current_page',
|
||||||
|
'htmx_partial',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ __all__ = (
|
||||||
'checkmark',
|
'checkmark',
|
||||||
'copy_content',
|
'copy_content',
|
||||||
'customfield_value',
|
'customfield_value',
|
||||||
'htmx_table',
|
|
||||||
'formaction',
|
'formaction',
|
||||||
|
'htmx_table',
|
||||||
'static_with_params',
|
'static_with_params',
|
||||||
'tag',
|
'tag',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ from netbox.api.serializers import WritableNestedSerializer
|
||||||
from virtualization import models
|
from virtualization import models
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'NestedVirtualMachineSerializer',
|
|
||||||
'NestedVMInterfaceSerializer',
|
'NestedVMInterfaceSerializer',
|
||||||
|
'NestedVirtualMachineSerializer',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@ __all__ = (
|
||||||
'ClusterFilterSet',
|
'ClusterFilterSet',
|
||||||
'ClusterGroupFilterSet',
|
'ClusterGroupFilterSet',
|
||||||
'ClusterTypeFilterSet',
|
'ClusterTypeFilterSet',
|
||||||
|
'VMInterfaceFilterSet',
|
||||||
'VirtualDiskFilterSet',
|
'VirtualDiskFilterSet',
|
||||||
'VirtualMachineFilterSet',
|
'VirtualMachineFilterSet',
|
||||||
'VMInterfaceFilterSet',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ from utilities.forms.fields import ExpandableNameField
|
||||||
from virtualization.models import VirtualDisk, VirtualMachine, VMInterface
|
from virtualization.models import VirtualDisk, VirtualMachine, VMInterface
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'VirtualDiskBulkCreateForm',
|
|
||||||
'VMInterfaceBulkCreateForm',
|
'VMInterfaceBulkCreateForm',
|
||||||
|
'VirtualDiskBulkCreateForm',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,11 +21,11 @@ __all__ = (
|
||||||
'ClusterBulkEditForm',
|
'ClusterBulkEditForm',
|
||||||
'ClusterGroupBulkEditForm',
|
'ClusterGroupBulkEditForm',
|
||||||
'ClusterTypeBulkEditForm',
|
'ClusterTypeBulkEditForm',
|
||||||
|
'VMInterfaceBulkEditForm',
|
||||||
|
'VMInterfaceBulkRenameForm',
|
||||||
'VirtualDiskBulkEditForm',
|
'VirtualDiskBulkEditForm',
|
||||||
'VirtualDiskBulkRenameForm',
|
'VirtualDiskBulkRenameForm',
|
||||||
'VirtualMachineBulkEditForm',
|
'VirtualMachineBulkEditForm',
|
||||||
'VMInterfaceBulkEditForm',
|
|
||||||
'VMInterfaceBulkRenameForm',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,12 @@ from virtualization.choices import *
|
||||||
from virtualization.models import *
|
from virtualization.models import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ClusterImportForm',
|
|
||||||
'ClusterGroupImportForm',
|
'ClusterGroupImportForm',
|
||||||
|
'ClusterImportForm',
|
||||||
'ClusterTypeImportForm',
|
'ClusterTypeImportForm',
|
||||||
|
'VMInterfaceImportForm',
|
||||||
'VirtualDiskImportForm',
|
'VirtualDiskImportForm',
|
||||||
'VirtualMachineImportForm',
|
'VirtualMachineImportForm',
|
||||||
'VMInterfaceImportForm',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,9 @@ __all__ = (
|
||||||
'ClusterFilterForm',
|
'ClusterFilterForm',
|
||||||
'ClusterGroupFilterForm',
|
'ClusterGroupFilterForm',
|
||||||
'ClusterTypeFilterForm',
|
'ClusterTypeFilterForm',
|
||||||
|
'VMInterfaceFilterForm',
|
||||||
'VirtualDiskFilterForm',
|
'VirtualDiskFilterForm',
|
||||||
'VirtualMachineFilterForm',
|
'VirtualMachineFilterForm',
|
||||||
'VMInterfaceFilterForm',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,9 @@ __all__ = (
|
||||||
'ClusterGroupForm',
|
'ClusterGroupForm',
|
||||||
'ClusterRemoveDevicesForm',
|
'ClusterRemoveDevicesForm',
|
||||||
'ClusterTypeForm',
|
'ClusterTypeForm',
|
||||||
|
'VMInterfaceForm',
|
||||||
'VirtualDiskForm',
|
'VirtualDiskForm',
|
||||||
'VirtualMachineForm',
|
'VirtualMachineForm',
|
||||||
'VMInterfaceForm',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ from utilities.forms.fields import ExpandableNameField
|
||||||
from .model_forms import VirtualDiskForm, VMInterfaceForm
|
from .model_forms import VirtualDiskForm, VMInterfaceForm
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'VirtualDiskCreateForm',
|
|
||||||
'VMInterfaceCreateForm',
|
'VMInterfaceCreateForm',
|
||||||
|
'VirtualDiskCreateForm',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,9 @@ __all__ = (
|
||||||
'ClusterFilter',
|
'ClusterFilter',
|
||||||
'ClusterGroupFilter',
|
'ClusterGroupFilter',
|
||||||
'ClusterTypeFilter',
|
'ClusterTypeFilter',
|
||||||
'VirtualMachineFilter',
|
|
||||||
'VMInterfaceFilter',
|
'VMInterfaceFilter',
|
||||||
'VirtualDiskFilter',
|
'VirtualDiskFilter',
|
||||||
|
'VirtualMachineFilter',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,12 @@ if TYPE_CHECKING:
|
||||||
from tenancy.graphql.types import TenantType
|
from tenancy.graphql.types import TenantType
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ClusterType',
|
|
||||||
'ClusterGroupType',
|
'ClusterGroupType',
|
||||||
|
'ClusterType',
|
||||||
'ClusterTypeType',
|
'ClusterTypeType',
|
||||||
|
'VMInterfaceType',
|
||||||
'VirtualDiskType',
|
'VirtualDiskType',
|
||||||
'VirtualMachineType',
|
'VirtualMachineType',
|
||||||
'VMInterfaceType',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@ from utilities.tracking import TrackingModelMixin
|
||||||
from virtualization.choices import *
|
from virtualization.choices import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
'VMInterface',
|
||||||
'VirtualDisk',
|
'VirtualDisk',
|
||||||
'VirtualMachine',
|
'VirtualMachine',
|
||||||
'VMInterface',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ from tenancy.tables import ContactsColumnMixin, TenancyColumnsMixin
|
||||||
from virtualization.models import Cluster, ClusterGroup, ClusterType
|
from virtualization.models import Cluster, ClusterGroup, ClusterType
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'ClusterTable',
|
|
||||||
'ClusterGroupTable',
|
'ClusterGroupTable',
|
||||||
|
'ClusterTable',
|
||||||
'ClusterTypeTable',
|
'ClusterTypeTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ from virtualization.models import VirtualDisk, VirtualMachine, VMInterface
|
||||||
from .template_code import *
|
from .template_code import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
'VMInterfaceTable',
|
||||||
'VirtualDiskTable',
|
'VirtualDiskTable',
|
||||||
'VirtualMachineTable',
|
'VirtualMachineTable',
|
||||||
'VirtualMachineVirtualDiskTable',
|
|
||||||
'VirtualMachineVMInterfaceTable',
|
'VirtualMachineVMInterfaceTable',
|
||||||
'VMInterfaceTable',
|
'VirtualMachineVirtualDiskTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ __all__ = (
|
||||||
'IPSecPolicyViewSet',
|
'IPSecPolicyViewSet',
|
||||||
'IPSecProfileViewSet',
|
'IPSecProfileViewSet',
|
||||||
'IPSecProposalViewSet',
|
'IPSecProposalViewSet',
|
||||||
'L2VPNViewSet',
|
|
||||||
'L2VPNTerminationViewSet',
|
'L2VPNTerminationViewSet',
|
||||||
|
'L2VPNViewSet',
|
||||||
'TunnelGroupViewSet',
|
'TunnelGroupViewSet',
|
||||||
'TunnelTerminationViewSet',
|
'TunnelTerminationViewSet',
|
||||||
'TunnelViewSet',
|
'TunnelViewSet',
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ __all__ = (
|
||||||
'IPSecProposalImportForm',
|
'IPSecProposalImportForm',
|
||||||
'L2VPNImportForm',
|
'L2VPNImportForm',
|
||||||
'L2VPNTerminationImportForm',
|
'L2VPNTerminationImportForm',
|
||||||
'TunnelImportForm',
|
|
||||||
'TunnelGroupImportForm',
|
'TunnelGroupImportForm',
|
||||||
|
'TunnelImportForm',
|
||||||
'TunnelTerminationImportForm',
|
'TunnelTerminationImportForm',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,16 +23,16 @@ if TYPE_CHECKING:
|
||||||
from .enums import *
|
from .enums import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'TunnelGroupFilter',
|
|
||||||
'TunnelTerminationFilter',
|
|
||||||
'TunnelFilter',
|
|
||||||
'IKEProposalFilter',
|
|
||||||
'IKEPolicyFilter',
|
'IKEPolicyFilter',
|
||||||
'IPSecProposalFilter',
|
'IKEProposalFilter',
|
||||||
'IPSecPolicyFilter',
|
'IPSecPolicyFilter',
|
||||||
'IPSecProfileFilter',
|
'IPSecProfileFilter',
|
||||||
|
'IPSecProposalFilter',
|
||||||
'L2VPNFilter',
|
'L2VPNFilter',
|
||||||
'L2VPNTerminationFilter',
|
'L2VPNTerminationFilter',
|
||||||
|
'TunnelFilter',
|
||||||
|
'TunnelGroupFilter',
|
||||||
|
'TunnelTerminationFilter',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@ __all__ = (
|
||||||
'IPSecPolicyType',
|
'IPSecPolicyType',
|
||||||
'IPSecProfileType',
|
'IPSecProfileType',
|
||||||
'IPSecProposalType',
|
'IPSecProposalType',
|
||||||
'L2VPNType',
|
|
||||||
'L2VPNTerminationType',
|
'L2VPNTerminationType',
|
||||||
|
'L2VPNType',
|
||||||
'TunnelGroupType',
|
'TunnelGroupType',
|
||||||
'TunnelTerminationType',
|
'TunnelTerminationType',
|
||||||
'TunnelType',
|
'TunnelType',
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ __all__ = (
|
||||||
'IKEPolicyTable',
|
'IKEPolicyTable',
|
||||||
'IKEProposalTable',
|
'IKEProposalTable',
|
||||||
'IPSecPolicyTable',
|
'IPSecPolicyTable',
|
||||||
'IPSecProposalTable',
|
|
||||||
'IPSecProfileTable',
|
'IPSecProfileTable',
|
||||||
|
'IPSecProposalTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ from tenancy.tables import ContactsColumnMixin, TenancyColumnsMixin
|
||||||
from vpn.models import *
|
from vpn.models import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'TunnelTable',
|
|
||||||
'TunnelGroupTable',
|
'TunnelGroupTable',
|
||||||
|
'TunnelTable',
|
||||||
'TunnelTerminationTable',
|
'TunnelTerminationTable',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ from wireless.choices import *
|
||||||
from wireless.models import *
|
from wireless.models import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'WirelessLANImportForm',
|
|
||||||
'WirelessLANGroupImportForm',
|
'WirelessLANGroupImportForm',
|
||||||
|
'WirelessLANImportForm',
|
||||||
'WirelessLinkImportForm',
|
'WirelessLinkImportForm',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@ if TYPE_CHECKING:
|
||||||
from .enums import *
|
from .enums import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'WirelessLANGroupFilter',
|
|
||||||
'WirelessLANFilter',
|
'WirelessLANFilter',
|
||||||
|
'WirelessLANGroupFilter',
|
||||||
'WirelessLinkFilter',
|
'WirelessLinkFilter',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ if TYPE_CHECKING:
|
||||||
from tenancy.graphql.types import TenantType
|
from tenancy.graphql.types import TenantType
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'WirelessLANType',
|
|
||||||
'WirelessLANGroupType',
|
'WirelessLANGroupType',
|
||||||
|
'WirelessLANType',
|
||||||
'WirelessLinkType',
|
'WirelessLinkType',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
25
ruff.toml
25
ruff.toml
|
|
@ -35,20 +35,21 @@ target-version = "py312"
|
||||||
# Keeping this explicit makes ruff deterministic.
|
# Keeping this explicit makes ruff deterministic.
|
||||||
select = ["E4", "E7", "E9", "F"]
|
select = ["E4", "E7", "E9", "F"]
|
||||||
extend-select = [
|
extend-select = [
|
||||||
"E1", # pycodestyle errors: indentation-related (e.g., unexpected/missing indent)
|
"E1", # pycodestyle errors: indentation-related (e.g., unexpected/missing indent)
|
||||||
"E2", # pycodestyle errors: whitespace-related (e.g., missing whitespace, extra spaces)
|
"E2", # pycodestyle errors: whitespace-related (e.g., missing whitespace, extra spaces)
|
||||||
"E3", # pycodestyle errors: blank lines / spacing around definitions
|
"E3", # pycodestyle errors: blank lines / spacing around definitions
|
||||||
"E501", # pycodestyle: line too long (enforced with `line-length` above)
|
"E501", # pycodestyle: line too long (enforced with `line-length` above)
|
||||||
"W", # pycodestyle warnings (various style warnings, often whitespace/newlines)
|
"W", # pycodestyle warnings (various style warnings, often whitespace/newlines)
|
||||||
"I", # import sorting (isort-equivalent)
|
"I", # import sorting (isort-equivalent)
|
||||||
"RET", # return semantics (flake8-return family: consistent/explicit returns; remove redundant else/assign before return)
|
"RET", # return semantics (flake8-return family: consistent/explicit returns; remove redundant else/assign before return)
|
||||||
"UP", # pyupgrade: modernize syntax for your target Python (e.g., f-strings, built-in generics, newer stdlib idioms)
|
"UP", # pyupgrade: modernize syntax for your target Python (e.g., f-strings, built-in generics, newer stdlib idioms)
|
||||||
|
"RUF022", # ruff: enforce sorted `__all__` lists
|
||||||
]
|
]
|
||||||
ignore = [
|
ignore = [
|
||||||
"F403", # pyflakes: `from ... import *` used; unable to detect undefined names
|
"F403", # pyflakes: `from ... import *` used; unable to detect undefined names
|
||||||
"F405", # pyflakes: name may be undefined or defined from star imports
|
"F405", # pyflakes: name may be undefined or defined from star imports
|
||||||
"RET504", # return: unnecessary assignment before `return` (e.g., `x = expr; return x` -> `return expr`)
|
"RET504", # return: unnecessary assignment before `return` (e.g., `x = expr; return x` -> `return expr`)
|
||||||
"UP032", # pyupgrade: prefer f-strings over `str.format(...)`
|
"UP032", # pyupgrade: prefer f-strings over `str.format(...)`
|
||||||
]
|
]
|
||||||
preview = true
|
preview = true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue