diff --git a/src/objects/api/serializers.py b/src/objects/api/serializers.py index 21c00cb7..3670c8f3 100644 --- a/src/objects/api/serializers.py +++ b/src/objects/api/serializers.py @@ -9,7 +9,11 @@ from objects.utils.serializers import DynamicFieldsMixin from .fields import ObjectSlugRelatedField, ObjectTypeField, ObjectUrlField -from .validators import GeometryValidator, IsImmutableValidator, JsonSchemaValidator +from .validators import ( + GeometryValidator, + IsImmutableValidator, + JsonSchemaValidator, +) class ObjectRecordSerializer(serializers.ModelSerializer): diff --git a/src/objects/api/v2/views.py b/src/objects/api/v2/views.py index 2939a7d5..702146b1 100644 --- a/src/objects/api/v2/views.py +++ b/src/objects/api/v2/views.py @@ -27,7 +27,6 @@ from .filters import ObjectRecordFilterSet - @extend_schema_view( list=extend_schema( description="Retrieve a list of OBJECTs and their actual RECORD. " diff --git a/src/objects/tests/admin/test_token_permissions.py b/src/objects/tests/admin/test_token_permissions.py index a9195275..567c1617 100644 --- a/src/objects/tests/admin/test_token_permissions.py +++ b/src/objects/tests/admin/test_token_permissions.py @@ -6,7 +6,11 @@ from objects.accounts.tests.factories import UserFactory from objects.token.tests.factories import ObjectTypeFactory, TokenAuthFactory -from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get +from ..utils import ( + mock_objecttype, + mock_objecttype_version, + mock_service_oas_get, +) OBJECT_TYPES_API = "https://example.com/objecttypes/v1/" diff --git a/src/objects/tests/v1/test_object_api.py b/src/objects/tests/v1/test_object_api.py index fed267a1..a9360079 100644 --- a/src/objects/tests/v1/test_object_api.py +++ b/src/objects/tests/v1/test_object_api.py @@ -17,7 +17,11 @@ from objects.utils.test import TokenAuthMixin from ..constants import GEO_WRITE_KWARGS -from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get +from ..utils import ( + mock_objecttype, + mock_objecttype_version, + mock_service_oas_get, +) from .utils import reverse OBJECT_TYPES_API = "https://example.com/objecttypes/v1/" diff --git a/src/objects/tests/v1/test_validation.py b/src/objects/tests/v1/test_validation.py index c581d7ee..6f9f7a80 100644 --- a/src/objects/tests/v1/test_validation.py +++ b/src/objects/tests/v1/test_validation.py @@ -11,7 +11,11 @@ from objects.utils.test import TokenAuthMixin from ..constants import GEO_WRITE_KWARGS -from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get +from ..utils import ( + mock_objecttype, + mock_objecttype_version, + mock_service_oas_get, +) from .utils import reverse OBJECT_TYPES_API = "https://example.com/objecttypes/v1/" diff --git a/src/objects/tests/v2/test_object_api.py b/src/objects/tests/v2/test_object_api.py index 12b5a43a..94b7c173 100644 --- a/src/objects/tests/v2/test_object_api.py +++ b/src/objects/tests/v2/test_object_api.py @@ -18,7 +18,11 @@ from objects.utils.test import TokenAuthMixin from ..constants import GEO_WRITE_KWARGS -from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get +from ..utils import ( + mock_objecttype, + mock_objecttype_version, + mock_service_oas_get, +) from .utils import reverse OBJECT_TYPES_API = "https://example.com/objecttypes/v1/" diff --git a/src/objects/tests/v2/test_validation.py b/src/objects/tests/v2/test_validation.py index c581d7ee..6f9f7a80 100644 --- a/src/objects/tests/v2/test_validation.py +++ b/src/objects/tests/v2/test_validation.py @@ -11,7 +11,11 @@ from objects.utils.test import TokenAuthMixin from ..constants import GEO_WRITE_KWARGS -from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get +from ..utils import ( + mock_objecttype, + mock_objecttype_version, + mock_service_oas_get, +) from .utils import reverse OBJECT_TYPES_API = "https://example.com/objecttypes/v1/" diff --git a/src/objects/token/authentication.py b/src/objects/token/authentication.py index c5c8bf71..20a94d7f 100644 --- a/src/objects/token/authentication.py +++ b/src/objects/token/authentication.py @@ -1,7 +1,9 @@ from django.utils.translation import gettext_lazy as _ from rest_framework import exceptions -from rest_framework.authentication import TokenAuthentication as _TokenAuthentication +from rest_framework.authentication import ( + TokenAuthentication as _TokenAuthentication, +) class TokenAuthentication(_TokenAuthentication):