-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move STORAGE_MODES
to testing/storage.py
#2231
Move STORAGE_MODES
to testing/storage.py
#2231
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick action, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for simplifying the codebase. It looks good.
I left a minor question.
@@ -23,6 +23,7 @@ | |||
from optuna.storages import RDBStorage | |||
from optuna.storages import RedisStorage | |||
from optuna.storages._base import DEFAULT_STUDY_NAME_PREFIX | |||
from optuna.testing.storage import STORAGE_MODES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[question]
This order of imports seems not to be alphabetical. Is this intended?
>>> sorted(["STORAGE_MODES", "StorageSupplier", "a"])[::-1]
['a', 'StorageSupplier', 'STORAGE_MODES']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This order is determined by isort
automatically, so I think it is fine.
Also, please resolve a conflict. 🙏 |
@himkt Thanks for the review! PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for the quick response!
Motivation
As suggested in #2218 (comment), this PR moves the
STORAGE_MODES
variable which is used several times in tests totesting/storage.py
.Description of the changes
STORAGE_MODES
totesting/storage.py