-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Tune * update * update * update * update * update * update * update * fix tests
- Loading branch information
1 parent
e457e01
commit 8b8b344
Showing
23 changed files
with
187 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,46 @@ | ||
{ | ||
"name": "Fugue Development Environment", | ||
"image": "fugueproject/devenv:latest", | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.linting.enabled": true, | ||
"python.linting.pylintEnabled": true, | ||
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", | ||
"python.formatting.blackPath": "/usr/local/py-utils/bin/black", | ||
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", | ||
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit", | ||
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", | ||
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", | ||
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", | ||
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", | ||
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" | ||
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.10", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.defaultInterpreterPath": "/usr/local/bin/python", | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"isort.interpreter": [ | ||
"/usr/local/bin/python" | ||
], | ||
"flake8.interpreter": [ | ||
"/usr/local/bin/python" | ||
], | ||
"pylint.interpreter": [ | ||
"/usr/local/bin/python" | ||
], | ||
"black-formatter.interpreter": [ | ||
"/usr/local/bin/python" | ||
] | ||
}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.isort", | ||
"ms-python.flake8", | ||
"ms-python.pylint", | ||
"ms-python.mypy", | ||
"ms-python.black-formatter", | ||
"GitHub.copilot", | ||
"njpwerner.autodocstring" | ||
] | ||
} | ||
}, | ||
"extensions": [ | ||
"ms-python.python" | ||
], | ||
"forwardPorts": [ | ||
8888 | ||
], | ||
"postCreateCommand": "make devenv", | ||
"mounts": [ | ||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" | ||
] | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2.11.0": {}, | ||
"ghcr.io/devcontainers/features/java:1": { | ||
"version": "11" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[MESSAGES CONTROL] | ||
disable = C0103,C0114,C0115,C0116,C0122,C0200,C0201,C0302,C0411,C0415,E0401,E0712,E1130,R0201,R0205,R0801,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R1705,R1710,R1718,R1720,R1724,W0102,W0107,W0108,W0201,W0212,W0221,W0223,W0237,W0511,W0613,W0631,W0640,W0703,W0707,W1116 | ||
disable = C0103,C0114,C0115,C0116,C0122,C0200,C0201,C0302,C0411,C0415,E0401,E0712,E1130,E1136,R0201,R0205,R0801,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R1705,R1710,R1718,R1720,R1724,W0102,W0107,W0108,W0201,W0212,W0221,W0223,W0237,W0511,W0613,W0631,W0640,W0703,W0707,W1116 | ||
# TODO: R0205: inherits from object, can be safely removed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ def get_version() -> str: | |
author_email="[email protected]", | ||
keywords="hyper parameter hyperparameter tuning tune tuner optimzation", | ||
url="http://github.com/fugue-project/tune", | ||
install_requires=["fugue", "cloudpickle", "triad>=0.8.4"], | ||
install_requires=["fugue", "cloudpickle", "triad>=0.8.4", "fs"], | ||
extras_require={ | ||
"hyperopt": ["hyperopt"], | ||
"optuna": ["optuna"], | ||
|
@@ -54,14 +54,14 @@ def get_version() -> str: | |
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3 :: Only", | ||
], | ||
python_requires=">=3.6", | ||
python_requires=">=3.8", | ||
entry_points={ | ||
"tune.plugins": [ | ||
"mlflow = tune_mlflow[mlflow]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from tune.concepts.logger import ( | ||
MetricLogger, | ||
get_current_metric_logger, | ||
set_current_metric_logger, | ||
) | ||
|
||
|
||
def test_logger_context(): | ||
m1 = MetricLogger() | ||
m2 = MetricLogger() | ||
|
||
with set_current_metric_logger(m1) as mm1: | ||
assert get_current_metric_logger() is m1 | ||
assert mm1 is m1 | ||
with set_current_metric_logger(m2) as mm2: | ||
assert get_current_metric_logger() is m2 | ||
assert mm2 is m2 | ||
assert get_current_metric_logger() is m1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.