Skip to content

Commit

Permalink
🎨 [#315] Re-running isort
Browse files Browse the repository at this point in the history
  • Loading branch information
ErhanCitil committed Jun 13, 2023
1 parent 96c0823 commit 8b95ea6
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 8 deletions.
6 changes: 5 additions & 1 deletion src/objects/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion src/objects/api/v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from .filters import ObjectRecordFilterSet



@extend_schema_view(
list=extend_schema(
description="Retrieve a list of OBJECTs and their actual RECORD. "
Expand Down
6 changes: 5 additions & 1 deletion src/objects/tests/admin/test_token_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"

Expand Down
6 changes: 5 additions & 1 deletion src/objects/tests/v1/test_object_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
6 changes: 5 additions & 1 deletion src/objects/tests/v1/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
6 changes: 5 additions & 1 deletion src/objects/tests/v2/test_object_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
6 changes: 5 additions & 1 deletion src/objects/tests/v2/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
4 changes: 3 additions & 1 deletion src/objects/token/authentication.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit 8b95ea6

Please sign in to comment.