Skip to content

Commit 4639fc3

Browse files
committed
Adjust linting
1 parent 85c5e7d commit 4639fc3

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

cloudendure/cloudendure.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,13 @@ def __init__(
8282
self.target_machines: List[str] = self.config.active_config.get(
8383
"machines", ""
8484
).split(",")
85-
self.target_instance_types: List[str] = self.config.active_config.get("instance_types", "").split(",")
85+
self.target_instance_types: List[str] = self.config.active_config.get(
86+
"instance_types", ""
87+
).split(",")
8688
if len(self.target_machines) == len(self.target_instance_types):
87-
self.target_instances: Dict[str, str] = dict(zip(self.target_machines, self.target_instance_types))
89+
self.target_instances: Dict[str, str] = dict(
90+
zip(self.target_machines, self.target_instance_types)
91+
)
8892
else:
8993
print(
9094
"WARNING: Misconfiguration of CLOUDENDURE_INSTANCE_TYPES and CLOUDENDURE_MACHINES. These should be the same length!"

cloudendure/cloudendure_api/configuration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ def get_api_key_with_prefix(self, identifier: str) -> str:
222222
223223
"""
224224
if self.api_key.get(identifier) and self.api_key_prefix.get(identifier):
225-
return (
226-
f"{self.api_key_prefix[identifier]} {self.api_key[identifier]}"
227-
) # noqa: E501
225+
return f"{self.api_key_prefix[identifier]} {self.api_key[identifier]}" # noqa: E501
228226
if self.api_key.get(identifier):
229227
return self.api_key[identifier]
230228
return ""

cloudendure/cloudendure_api/test/test_replication_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_projects_project_id_replication_configurations_post(self):
7171
pass
7272

7373
def test_projects_project_id_replication_configurations_replication_configuration_id_patch(
74-
self
74+
self,
7575
):
7676
"""Test case for projects_project_id_replication_configurations_replication_configuration_id_patch
7777

0 commit comments

Comments
 (0)