Skip to content

Commit 1fb22bd

Browse files
[WEB-4805] fix: upgraded psycopgy packages to fix linting and removed unused imports (#7735)
* chore: update psycopg dependencies to version 3.2.9 in base requirements * refactor: clean up unused imports across multiple files * chore: update lxml dependency to version 6.0.0 in base requirements * style: improve code readability by breaking long lines into multiple lines across several files * style: enhance readability by breaking long lines in ModuleSerializer docstring
1 parent e891482 commit 1fb22bd

File tree

21 files changed

+45
-46
lines changed

21 files changed

+45
-46
lines changed

apps/api/plane/api/serializers/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def _filter_fields(self, fields):
2929
"""
3030
Adjust the serializer's fields based on the provided 'fields' list.
3131
32-
:param fields: List or dictionary specifying which fields to include in the serializer.
32+
:param fields: List or dictionary specifying which
33+
fields to include in the serializer.
3334
:return: The updated fields for the serializer.
3435
"""
3536
# Check each field_name in the provided fields.

apps/api/plane/api/serializers/issue.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class IssueSerializer(BaseSerializer):
4343
Comprehensive work item serializer with full relationship management.
4444
4545
Handles complete work item lifecycle including assignees, labels, validation,
46-
and related model updates. Supports dynamic field expansion and HTML content processing.
46+
and related model updates. Supports dynamic field expansion and HTML content
47+
processing.
4748
"""
4849

4950
assignees = serializers.ListField(

apps/api/plane/api/serializers/module.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ class ModuleCreateSerializer(BaseSerializer):
1717
"""
1818
Serializer for creating modules with member validation and date checking.
1919
20-
Handles module creation including member assignment validation, date range verification,
21-
and duplicate name prevention for feature-based project organization setup.
20+
Handles module creation including member assignment validation, date range
21+
verification, and duplicate name prevention for feature-based
22+
project organization setup.
2223
"""
2324

2425
members = serializers.ListField(
@@ -105,8 +106,9 @@ class ModuleUpdateSerializer(ModuleCreateSerializer):
105106
"""
106107
Serializer for updating modules with enhanced validation and member management.
107108
108-
Extends module creation with update-specific validations including member reassignment,
109-
name conflict checking, and relationship management for module modifications.
109+
Extends module creation with update-specific validations including
110+
member reassignment, name conflict checking,
111+
and relationship management for module modifications.
110112
"""
111113

112114
class Meta(ModuleCreateSerializer.Meta):
@@ -155,8 +157,8 @@ class ModuleSerializer(BaseSerializer):
155157
"""
156158
Comprehensive module serializer with work item metrics and member management.
157159
158-
Provides complete module data including work item counts by status, member relationships,
159-
and progress tracking for feature-based project organization.
160+
Provides complete module data including work item counts by status, member
161+
relationships, and progress tracking for feature-based project organization.
160162
"""
161163

162164
members = serializers.ListField(

apps/api/plane/api/views/asset.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Third party imports
99
from rest_framework import status
1010
from rest_framework.response import Response
11-
from drf_spectacular.utils import OpenApiExample, OpenApiRequest, OpenApiTypes
11+
from drf_spectacular.utils import OpenApiExample, OpenApiRequest
1212

1313
# Module Imports
1414
from plane.bgtasks.storage_metadata_task import get_asset_object_metadata
@@ -282,8 +282,9 @@ def entity_asset_delete(self, entity_type, asset, request):
282282
def post(self, request):
283283
"""Generate presigned URL for user server asset upload.
284284
285-
Create a presigned URL for uploading user profile assets (avatar or cover image) using server credentials.
286-
This endpoint generates the necessary credentials for direct S3 upload with server-side authentication.
285+
Create a presigned URL for uploading user profile assets
286+
(avatar or cover image) using server credentials. This endpoint generates the
287+
necessary credentials for direct S3 upload with server-side authentication.
287288
"""
288289
# get the asset key
289290
name = request.data.get("name")

apps/api/plane/api/views/issue.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@
3030
# drf-spectacular imports
3131
from drf_spectacular.utils import (
3232
extend_schema,
33-
OpenApiParameter,
3433
OpenApiResponse,
3534
OpenApiExample,
3635
OpenApiRequest,
3736
)
38-
from drf_spectacular.types import OpenApiTypes
3937

4038
# Module imports
4139
from plane.api.serializers import (
@@ -99,7 +97,6 @@
9997
EXTERNAL_ID_PARAMETER,
10098
EXTERNAL_SOURCE_PARAMETER,
10199
ORDER_BY_PARAMETER,
102-
SEARCH_PARAMETER,
103100
SEARCH_PARAMETER_REQUIRED,
104101
LIMIT_PARAMETER,
105102
WORKSPACE_SEARCH_PARAMETER,

apps/api/plane/api/views/module.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Third party imports
1111
from rest_framework import status
1212
from rest_framework.response import Response
13-
from drf_spectacular.utils import OpenApiResponse, OpenApiExample, OpenApiRequest
13+
from drf_spectacular.utils import OpenApiResponse, OpenApiRequest
1414

1515
# Module imports
1616
from plane.api.serializers import (
@@ -41,8 +41,6 @@
4141
from plane.utils.openapi import (
4242
module_docs,
4343
module_issue_docs,
44-
WORKSPACE_SLUG_PARAMETER,
45-
PROJECT_ID_PARAMETER,
4644
MODULE_ID_PARAMETER,
4745
MODULE_PK_PARAMETER,
4846
ISSUE_ID_PARAMETER,

apps/api/plane/api/views/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from rest_framework import status
1212
from rest_framework.response import Response
1313
from rest_framework.serializers import ValidationError
14-
from drf_spectacular.utils import OpenApiResponse, OpenApiExample, OpenApiRequest
14+
from drf_spectacular.utils import OpenApiResponse, OpenApiRequest
1515

1616

1717
# Module imports

apps/api/plane/api/views/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Third party imports
55
from rest_framework import status
66
from rest_framework.response import Response
7-
from drf_spectacular.utils import OpenApiResponse, OpenApiExample, OpenApiRequest
7+
from drf_spectacular.utils import OpenApiResponse, OpenApiRequest
88

99
# Module imports
1010
from plane.api.serializers import StateSerializer

apps/api/plane/app/serializers/draft.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from lxml import html
21

32
# Django imports
43
from django.utils import timezone

apps/api/plane/app/serializers/issue.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from lxml import html
21

32
# Django imports
43
from django.utils import timezone

0 commit comments

Comments
 (0)