From f152ee19953d040828d42de05f7668022e4ef8c5 Mon Sep 17 00:00:00 2001 From: Contramundum Date: Thu, 7 Sep 2023 17:45:58 +0900 Subject: [PATCH] Fix linter --- optuna_dashboard/preferential/_system_attrs.py | 2 +- python_tests/test_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/optuna_dashboard/preferential/_system_attrs.py b/optuna_dashboard/preferential/_system_attrs.py index ab469a74..47c2a486 100644 --- a/optuna_dashboard/preferential/_system_attrs.py +++ b/optuna_dashboard/preferential/_system_attrs.py @@ -67,7 +67,7 @@ def get_skipped_trial_ids(study_system_attrs: dict[str, Any]) -> list[int]: if not k.startswith(_SYSTEM_ATTR_PREFIX_SKIP_TRIAL): continue try: - trial_id = int(k[len(_SYSTEM_ATTR_PREFIX_SKIP_TRIAL) :]) + trial_id = int(k[len(_SYSTEM_ATTR_PREFIX_SKIP_TRIAL) :]) # noqa: E203 skipped_trial_ids.append(trial_id) except ValueError: continue diff --git a/python_tests/test_api.py b/python_tests/test_api.py index e0c2e1c8..c551e3f2 100644 --- a/python_tests/test_api.py +++ b/python_tests/test_api.py @@ -160,7 +160,7 @@ class APITestCase(TestCase): storage = optuna.storages.InMemoryStorage() study = create_study(storage=storage, n_generate=3) for _ in range(3): - trial = study.ask() + study.ask() app = create_app(storage) study_id = study._study._study_id