From d8ca5c73c4749e91d6a5dd39b7d1fb4e9ccee5af Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 31 Jul 2024 17:24:05 +0300 Subject: [PATCH] Flake8 --- clearml/backend_interface/task/task.py | 4 ++-- clearml/external/kerastuner.py | 6 ++---- clearml/task.py | 4 ++-- examples/reporting/requirements.txt | 1 + 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/clearml/backend_interface/task/task.py b/clearml/backend_interface/task/task.py index 8298c77c..380e5171 100644 --- a/clearml/backend_interface/task/task.py +++ b/clearml/backend_interface/task/task.py @@ -94,7 +94,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin): return str(self) == str(other) def __repr__(self): - return f"TaskTypes.{self.value}" + return "TaskTypes.{}".format(self.value) training = 'training' testing = 'testing' @@ -116,7 +116,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin): return str(self) == str(other) def __repr__(self): - return f"TaskTypes.{self.value}" + return "TaskTypes.{}".format(self.value) created = "created" queued = "queued" diff --git a/clearml/external/kerastuner.py b/clearml/external/kerastuner.py index eb411ab9..e03b1568 100644 --- a/clearml/external/kerastuner.py +++ b/clearml/external/kerastuner.py @@ -1,12 +1,10 @@ from typing import Optional from logging import getLogger +from ..task import Task _logger = getLogger("clearml.external.kerastuner") -from ..task import Task - - try: import pandas as pd except ImportError: @@ -119,4 +117,4 @@ else: summary = pd.concat([summary, pd.DataFrame(trial_dict, index=[trial.trial_id])], ignore_index=True) summary.index.name = "trial id" summary = summary[["trial id", *sorted(summary.columns[1:])]] - self.task.get_logger().report_table("summary", "trial", 0, table_plot=summary) \ No newline at end of file + self.task.get_logger().report_table("summary", "trial", 0, table_plot=summary) diff --git a/clearml/task.py b/clearml/task.py index 4a92ce57..76b98630 100644 --- a/clearml/task.py +++ b/clearml/task.py @@ -180,8 +180,8 @@ class Task(_Task): __detect_repo_async = deferred_config('development.vcs_repo_detect_async', False) __default_output_uri = DEV_DEFAULT_OUTPUT_URI.get() or deferred_config('development.default_output_uri', None) - __hidden_tag = "hidden" - + __hidden_tag = "hidden" + _launch_multi_node_section = "launch_multi_node" _launch_multi_node_instance_tag = "multi_node_instance" diff --git a/examples/reporting/requirements.txt b/examples/reporting/requirements.txt index bb9393a3..ace399d2 100644 --- a/examples/reporting/requirements.txt +++ b/examples/reporting/requirements.txt @@ -3,6 +3,7 @@ clearml>=1.14.4 matplotlib >= 3.1.1 ; python_version >= '3.6' matplotlib >= 2.2.4 ; python_version < '3.6' numpy != 1.24.0 # https://github.com/numpy/numpy/issues/22826 +bokeh_sampledata==2024.2 ; python_version >= '3.10' pandas pillow>=4.0 plotly