From e327f404e33c7fc12f7c2fb43dd383b5d9dcaba4 Mon Sep 17 00:00:00 2001 From: D-X-Y <280835372@qq.com> Date: Thu, 4 Mar 2021 22:37:58 -0800 Subject: [PATCH] Fix pylint issues --- qlib/workflow/expm.py | 2 +- tests/test_all_pipeline.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qlib/workflow/expm.py b/qlib/workflow/expm.py index 362b1a82b..4ba72a634 100644 --- a/qlib/workflow/expm.py +++ b/qlib/workflow/expm.py @@ -274,7 +274,7 @@ class MLflowExpManager(ExpManager): def _set_uri(self): self._client = mlflow.tracking.MlflowClient(tracking_uri=self.uri) - logger.info('{:}'.format(self._client)) + logger.info("{:}".format(self._client)) @property def client(self): diff --git a/tests/test_all_pipeline.py b/tests/test_all_pipeline.py index a75eada75..d9d684697 100644 --- a/tests/test_all_pipeline.py +++ b/tests/test_all_pipeline.py @@ -149,10 +149,10 @@ def fake_experiment(): # start exp default_uri = R.get_uri() - current_uri = 'file:./temp-test-exp-mag' + current_uri = "file:./temp-test-exp-mag" with R.start(experiment_name="fake_workflow_for_expm", uri=current_uri): R.log_params(**flatten_dict(task)) - + current_uri_to_check = R.get_uri() default_uri_to_check = R.get_uri() return default_uri == default_uri_to_check, current_uri == current_uri_to_check, current_uri @@ -208,8 +208,8 @@ class TestAllFlow(TestAutoData): def test_2_expmanager(self): pass_default, pass_current, uri_path = fake_experiment() - self.assertTrue(pass_default, msg='default uri is incorrect') - self.assertTrue(pass_current, msg='current uri is incorrect') + self.assertTrue(pass_default, msg="default uri is incorrect") + self.assertTrue(pass_current, msg="current uri is incorrect") shutil.rmtree(str(Path(uri_path.strip("file:")).resolve()))