Skip to content

Commit

Permalink
fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinriverlane committed Oct 9, 2024
1 parent ba5946e commit b6790ea
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions pyaqueduct/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def create_experiment(
{"title": title, "description": description, "tags": tags or []},
)
experiment_obj = ExperimentData.from_dict(
data["createExperiment"]
) # pylint: disable=unsubscriptable-object
data["createExperiment"] # pylint: disable=unsubscriptable-object
)
logging.info("Created experiment - %s - %s", experiment_obj.uuid, experiment_obj.title)
return experiment_obj

Expand Down Expand Up @@ -169,8 +169,8 @@ def update_experiment(
},
)
experiment_obj = ExperimentData.from_dict(
data["updateExperiment"]
) # pylint: disable=unsubscriptable-object
data["updateExperiment"] # pylint: disable=unsubscriptable-object
)
logging.info("Updated experiment - %s", experiment_obj.uuid)
return experiment_obj

Expand Down Expand Up @@ -210,8 +210,8 @@ def get_experiments(
},
)
experiments_obj = ExperimentsInfo.from_dict(
data["experiments"]
) # pylint: disable=unsubscriptable-object
data["experiments"] # pylint: disable=unsubscriptable-object
)
logging.info(
"Fetched %s experiments, total %s experiments",
len(experiments_obj.experiments),
Expand All @@ -235,8 +235,8 @@ def get_experiment(self, experiment_uuid: UUID) -> ExperimentData:
{"type": "UUID", "value": str(experiment_uuid)},
)
experiment_obj = ExperimentData.from_dict(
data["experiment"]
) # pylint: disable=unsubscriptable-object
data["experiment"] # pylint: disable=unsubscriptable-object
)
logging.info("Fetched experiment - %s", experiment_obj.title)
return experiment_obj

Expand All @@ -256,8 +256,8 @@ def get_experiment_by_eid(self, eid: str) -> ExperimentData:
{"type": "EID", "value": eid},
)
experiment_obj = ExperimentData.from_dict(
data["experiment"]
) # pylint: disable=unsubscriptable-object
data["experiment"] # pylint: disable=unsubscriptable-object
)
logging.info("Fetched experiment - %s", experiment_obj.title)
return experiment_obj

Expand All @@ -278,8 +278,8 @@ def add_tags_to_experiment(self, experiment_uuid: UUID, tags: List[str]) -> Expe
{"uuid": str(experiment_uuid), "tags": tags},
)
experiment_obj = ExperimentData.from_dict(
data["addTagsToExperiment"]
) # pylint: disable=unsubscriptable-object
data["addTagsToExperiment"] # pylint: disable=unsubscriptable-object
)
logging.info("Added tags %s to experiment <%s>", tags, experiment_obj.title)
return experiment_obj

Expand Down Expand Up @@ -313,8 +313,8 @@ def remove_tag_from_experiment(self, experiment_uuid: UUID, tag: str) -> Experim
)

experiment_obj = ExperimentData.from_dict(
data["removeTagFromExperiment"]
) # pylint: disable=unsubscriptable-object
data["removeTagFromExperiment"] # pylint: disable=unsubscriptable-object
)
logging.info("Removed tag %s from experiment <%s>", tag, experiment_obj.title)
return experiment_obj

Expand Down Expand Up @@ -486,8 +486,8 @@ def execute_extension_action(
) from error

result = ExtensionExecutionResultData.from_dict(
extension_result["executeExtension"]
) # pylint: disable=unsubscriptable-object
extension_result["executeExtension"] # pylint: disable=unsubscriptable-object
)
logging.info(
"Executed a %s / %s extension action with result code %d",
extension,
Expand Down

1 comment on commit b6790ea

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
pyaqueduct
   api.py50394%194, 213–223
   experiment.py56198%93
   task.py481177%44–60, 65, 70, 75, 80, 85, 89–90
pyaqueduct/client
   client.py1594770%57–63, 113–118, 254–262, 331–339, 382–383, 420–421, 435–440, 479–484, 505–508, 533–551, 559–567
   experiment_types.py39197%20
   extension_types.py40295%30, 107
   task_types.py35391%31, 62, 96
TOTAL4996886% 

Tests Skipped Failures Errors Time
25 0 💤 0 ❌ 0 🔥 1.416s ⏱️

Please sign in to comment.