Skip to content

Commit

Permalink
Resolve linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Janson Bunce committed Feb 4, 2025
1 parent 5247820 commit b4e096a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
8 changes: 1 addition & 7 deletions backend/src/xfd_django/xfd_api/api_methods/sync.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
"""Split a list into chunks based on a byte size limit.
Each chunk will have a total byte size that does not exceed the specified
maximum. Chunks are stored as dictionaries containing the chunked items
and their bounds.
"""

"""Split a list into chunks based on a byte size limit."""
# Standard Python Libraries

# Standard Python Libraries
Expand Down
8 changes: 0 additions & 8 deletions backend/src/xfd_django/xfd_api/schema_models/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,6 @@ class GenericMessageResponseModel(BaseModel):
memory="8192",
description="Pull in vulnerability data from PEs Vulnerability database",
),
"vulnScanningSync": ScanSchema(
type="fargate",
isPassive=True,
global_scan=True,
cpu="1024",
memory="8192",
description="Pull in vulnerability data from PEs Vulnerability database",
),
"wappalyzer": ScanSchema(
type="fargate",
isPassive=True,
Expand Down
6 changes: 6 additions & 0 deletions backend/src/xfd_django/xfd_api/schema_models/sync.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Module containing schema models for syncing data."""

# Standard Python Libraries
from typing import Any

Expand All @@ -6,8 +8,12 @@


class SyncResponse(BaseModel):
"""Response model for sync operations."""

status: int


class SyncBody(BaseModel):
"""Request body model for sync operations."""

data: Any
2 changes: 1 addition & 1 deletion infrastructure/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -488,4 +488,4 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "crossfeed-lz-sync
sse_algorithm = "AES256"
}
}
}
}
2 changes: 1 addition & 1 deletion infrastructure/stage.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ ssm_pe_api_key = "/crossfeed/staging/PE_API_KEY"
ssm_cf_api_key = "/crossfeed/staging/CF_API_KEY"
create_elasticache_cluster = true
ssm_dmz_api_key = "/crossfeed/staging/DMZ_API_KEY"
ssm_mdl_sync_endpoint = "/crossfeed/staging/MDL_SYNC_ENDPOINT"
ssm_mdl_sync_endpoint = "/crossfeed/staging/MDL_SYNC_ENDPOINT"

0 comments on commit b4e096a

Please sign in to comment.