diff --git a/src/objects/api/serializers.py b/src/objects/api/serializers.py index 3670c8f3..21c00cb7 100644 --- a/src/objects/api/serializers.py +++ b/src/objects/api/serializers.py @@ -9,11 +9,7 @@ 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/tests/admin/test_token_permissions.py b/src/objects/tests/admin/test_token_permissions.py index 567c1617..a9195275 100644 --- a/src/objects/tests/admin/test_token_permissions.py +++ b/src/objects/tests/admin/test_token_permissions.py @@ -6,11 +6,7 @@ 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 a9360079..fed267a1 100644 --- a/src/objects/tests/v1/test_object_api.py +++ b/src/objects/tests/v1/test_object_api.py @@ -17,11 +17,7 @@ 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 6f9f7a80..c581d7ee 100644 --- a/src/objects/tests/v1/test_validation.py +++ b/src/objects/tests/v1/test_validation.py @@ -11,11 +11,7 @@ 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 94b7c173..12b5a43a 100644 --- a/src/objects/tests/v2/test_object_api.py +++ b/src/objects/tests/v2/test_object_api.py @@ -18,11 +18,7 @@ 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 6f9f7a80..c581d7ee 100644 --- a/src/objects/tests/v2/test_validation.py +++ b/src/objects/tests/v2/test_validation.py @@ -11,11 +11,7 @@ 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 20a94d7f..c5c8bf71 100644 --- a/src/objects/token/authentication.py +++ b/src/objects/token/authentication.py @@ -1,9 +1,7 @@ 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):