Skip to content

Commit 8b8f728

Browse files
committed
'Correctly' sort imports
1 parent f36dc73 commit 8b8f728

File tree

6 files changed

+19
-21
lines changed

6 files changed

+19
-21
lines changed

stack/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from awacs import ecr
55
from troposphere import Ref, iam
66

7-
from stack import USE_EKS, USE_ECS
7+
from stack import USE_ECS, USE_EKS
88
from stack.template import template
99
from stack.utils import ParameterWithDefaults as Parameter
1010

stack/dokku.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from troposphere import Base64, FindInMap, Join, Output, Ref, Tags
44
from troposphere.policies import CreationPolicy, ResourceSignal
55

6-
from .containers import container_instance_type, container_instance_profile
6+
from .containers import container_instance_profile, container_instance_type
77
from .domain import domain_name
88
from .environment import environment_variables
99
from .template import template

stack/ecs_cluster.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@
2424
TaskDefinition
2525
)
2626

27-
from .containers import container_instance_type, container_instance_profile, max_container_instances, \
28-
desired_container_instances
27+
from .containers import (
28+
container_instance_profile,
29+
container_instance_type,
30+
desired_container_instances,
31+
max_container_instances
32+
)
2933
from .environment import environment_variables
3034
from .load_balancer import load_balancer, web_worker_port
3135
from .logs import container_log_group

stack/eks.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
from troposphere import ec2, Ref, Tags, Join, iam, eks, Sub, GetAtt, Output
1+
from troposphere import GetAtt, Join, Output, Ref, Sub, Tags, ec2, eks, iam
22

33
from .containers import (
44
container_instance_role,
5+
container_instance_type,
56
container_volume_size,
67
desired_container_instances,
7-
max_container_instances,
8-
container_instance_type,
8+
max_container_instances
99
)
1010
from .template import template
1111
from .vpc import (
12-
vpc,
13-
public_subnet_a,
14-
public_subnet_b,
1512
private_subnet_a,
1613
private_subnet_b,
14+
public_subnet_a,
15+
public_subnet_b,
16+
vpc
1717
)
1818

1919

stack/instances.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
from troposphere import (
2-
AWS_STACK_NAME,
3-
Equals,
4-
Join,
5-
Ref,
6-
autoscaling,
7-
)
1+
from troposphere import AWS_STACK_NAME, Equals, Join, Ref, autoscaling
82

93
from .common import use_aes256_encryption
104
from .containers import (
11-
desired_container_instances,
12-
max_container_instances,
13-
container_volume_size,
145
container_instance_profile,
156
container_instance_type,
7+
container_volume_size,
8+
desired_container_instances,
9+
max_container_instances
1610
)
1711
from .load_balancer import load_balancer, web_worker_health_check
1812
from .security_groups import container_security_group

stack/security_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from troposphere import Join, Ref, Sub, Tag, Tags
22
from troposphere.ec2 import SecurityGroup, SecurityGroupRule
33

4-
from . import USE_EKS, USE_ECS, USE_EC2, USE_GOVCLOUD, USE_EB, USE_NAT_GATEWAY
4+
from . import USE_EB, USE_EC2, USE_ECS, USE_EKS, USE_GOVCLOUD, USE_NAT_GATEWAY
55
from .common import administrator_ip_address
66
from .template import template
77
from .vpc import vpc

0 commit comments

Comments
 (0)