Skip to content

Commit

Permalink
Linting: Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
njmei committed Sep 12, 2024
1 parent 1131a7c commit e45030a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 35 deletions.
23 changes: 1 addition & 22 deletions src/aibs_informatics_cdk_lib/constructs_/service/compute.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
from abc import abstractmethod
from typing import Any, Iterable, List, Optional, Union
from typing import Iterable, List, Optional, Union

import aws_cdk as cdk
from aibs_informatics_core.env import EnvBase
from aws_cdk import aws_batch as batch
from aws_cdk import aws_ec2 as ec2
from aws_cdk import aws_efs as efs
from aws_cdk import aws_iam as iam
from aws_cdk import aws_lambda as lambda_
from aws_cdk import aws_s3 as s3
from aws_cdk import aws_stepfunctions as sfn
from aws_cdk import aws_stepfunctions_tasks as sfn_tasks
from constructs import Construct

from aibs_informatics_cdk_lib.common.aws.iam_utils import (
LAMBDA_READ_ONLY_ACTIONS,
batch_policy_statement,
lambda_policy_statement,
s3_policy_statement,
)
from aibs_informatics_cdk_lib.constructs_.assets.code_asset_definitions import (
AIBSInformaticsCodeAssets,
)
from aibs_informatics_cdk_lib.constructs_.base import EnvBaseConstruct
from aibs_informatics_cdk_lib.constructs_.batch.infrastructure import (
Batch,
Expand All @@ -38,14 +25,6 @@
from aibs_informatics_cdk_lib.constructs_.batch.launch_template import BatchLaunchTemplateBuilder
from aibs_informatics_cdk_lib.constructs_.batch.types import BatchEnvironmentDescriptor
from aibs_informatics_cdk_lib.constructs_.efs.file_system import MountPointConfiguration
from aibs_informatics_cdk_lib.constructs_.sfn.fragments.base import create_state_machine
from aibs_informatics_cdk_lib.constructs_.sfn.fragments.batch import (
AWSBatchMixins,
SubmitJobWithDefaultsFragment,
)
from aibs_informatics_cdk_lib.constructs_.sfn.fragments.informatics import (
BatchInvokedLambdaFunction,
)


class BaseBatchComputeConstruct(EnvBaseConstruct):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import TYPE_CHECKING, Any, Iterable, List, Literal, Mapping, Optional, Sequence, Union
from unittest import result
from typing import TYPE_CHECKING, Any, List, Literal, Mapping, Optional, Sequence, Union

import constructs
from aibs_informatics_aws_utils.constants.lambda_ import (
Expand All @@ -10,19 +9,12 @@
)
from aibs_informatics_aws_utils.constants.s3 import S3_SCRATCH_KEY_PREFIX
from aibs_informatics_core.env import EnvBase
from aws_cdk import aws_batch_alpha as batch
from aws_cdk import aws_ecr_assets as ecr_assets
from aws_cdk import aws_iam as iam
from aws_cdk import aws_s3 as s3
from aws_cdk import aws_stepfunctions as sfn
from aws_cdk import aws_stepfunctions_tasks as sfn_tasks

from aibs_informatics_cdk_lib.common.aws.iam_utils import (
SFN_STATES_EXECUTION_ACTIONS,
SFN_STATES_READ_ACCESS_ACTIONS,
batch_policy_statement,
s3_policy_statement,
sfn_policy_statement,
)
from aibs_informatics_cdk_lib.constructs_.base import EnvBaseConstructMixins
from aibs_informatics_cdk_lib.constructs_.efs.file_system import MountPointConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
)
from aibs_informatics_cdk_lib.constructs_.base import EnvBaseConstructMixins
from aibs_informatics_cdk_lib.constructs_.efs.file_system import MountPointConfiguration
from aibs_informatics_cdk_lib.constructs_.sfn.fragments.base import EnvBaseStateMachineFragment
from aibs_informatics_cdk_lib.constructs_.sfn.fragments.informatics.batch import (
BatchInvokedBaseFragment,
BatchInvokedLambdaFunction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import constructs
from aibs_informatics_core.env import EnvBase
from aibs_informatics_core.utils.tools.dicttools import remove_null_values
from aws_cdk import aws_batch_alpha as batch
from aws_cdk import aws_batch as batch
from aws_cdk import aws_ecr_assets as ecr_assets
from aws_cdk import aws_iam as iam
from aws_cdk import aws_s3 as s3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import constructs
from aibs_informatics_core.env import EnvBase
from aws_cdk import aws_batch_alpha as batch
from aws_cdk import aws_batch as batch
from aws_cdk import aws_ecr_assets as ecr_assets
from aws_cdk import aws_efs as efs
from aws_cdk import aws_events as events
Expand Down

0 comments on commit e45030a

Please sign in to comment.