From 79877e0303b0bfc73d046359a8243d03c088c2ea Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 22 Nov 2024 10:36:58 -0500 Subject: [PATCH] Apply "Ruff-specific rules (RUF)" ruff rule set --- pyproject.toml | 1 + src/unifi_access/schemas/__init__.py | 84 ++++++++++++++-------------- 2 files changed, 43 insertions(+), 42 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cb083dd..f59b0bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,6 +62,7 @@ lint.select = [ "PTH", "Q", "RSE", + "RUF", "SIM", "T20", "TCH", diff --git a/src/unifi_access/schemas/__init__.py b/src/unifi_access/schemas/__init__.py index 900a5f4..a59afd9 100644 --- a/src/unifi_access/schemas/__init__.py +++ b/src/unifi_access/schemas/__init__.py @@ -77,69 +77,69 @@ from ._visitor import ( __all__ = [ "AccessPolicy", + "AccessPolicyId", + "ActorId", + "Device", + "DeviceId", + "Door", + "DoorEmergencyStatus", + "DoorGroup", + "DoorGroupId", + "DoorGroupResource", + "DoorGroupTopology", + "DoorGroupType", + "DoorId", + "DoorLockingRule", + "DoorLockingRuleType", + "DoorResource", + "EnrollNfcCardResponse", "FetchAllHolidayGroupsResponse", "FetchAllSchedulesResponse", + "FetchAllVisitorsExpansion", + "FloorId", + "FullUser", "Holiday", "HolidayGroup", - "PartialHoliday", - "Schedule", - "PartialSchedule", - "TimePeriod", - "WeekSchedule", - "AccessPolicyId", - "DoorId", - "FloorId", - "DoorGroupId", - "ResourceId", - "ScheduleId", - "UserId", - "UserGroupId", - "VisitorId", - "NfcCardId", - "HolidayId", "HolidayGroupId", - "DeviceId", - "NfcCardEnrollmentSessionId", - "NfcCardToken", - "ActorId", - "Resource", - "NamedResource", - "NamedResourceWithIsBindHub", - "DoorGroupResource", - "DoorResource", + "HolidayId", + "IdentityInvitationEmailFailure", + "IdentityInvitationUser", + "IdentityResourceType", "NamedDoorGroupResource", "NamedDoorGroupResourceWithIsBindHub", "NamedDoorResource", "NamedDoorResourceWithIsBindHub", - "PinCode", - "EnrollNfcCardResponse", + "NamedResource", + "NamedResourceWithIsBindHub", "NfcCard", + "NfcCardEnrollmentSessionId", "NfcCardEnrollmentStatus", + "NfcCardId", + "NfcCardToken", "NfcCardUser", - "Device", - "IdentityInvitationEmailFailure", - "IdentityInvitationUser", - "IdentityResourceType", - "Door", - "DoorEmergencyStatus", - "DoorGroup", - "DoorGroupTopology", - "DoorGroupType", - "DoorLockingRule", - "DoorLockingRuleType", + "PartialHoliday", + "PartialSchedule", + "PinCode", + "Resource", + "ResourceId", "ResourceTopology", + "Schedule", + "ScheduleId", "SystemLogActor", "SystemLogAuthentication", "SystemLogEntry", "SystemLogEvent", "SystemLogTopic", - "FetchAllVisitorsExpansion", + "TimePeriod", "User", - "FullUser", "UserGroup", + "UserGroupId", + "UserId", "UserNfcCard", "UserStatus", - "Visitor", - "VisitorStatus", "VisitReason", + "Visitor", + "VisitorId", + "VisitorStatus", + "WeekSchedule", ]