-
Notifications
You must be signed in to change notification settings - Fork 91
Unpin dependencies from [project.optional-dependencies] #4431
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
Changes from 16 commits
a7c8524
14854eb
e807ba8
9a5ca28
35bdb05
36ca044
2dfeb5e
95d6550
b1572dc
669b7af
c178fcc
e16a25c
3c376ab
854e8c2
6f8b5bc
77d2046
6659359
cae8c04
ebad556
036b24f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| # flake8: noqa 401 imported to force console mode for tqdm in jupyter notebooks | ||
| from tqdm.auto import tqdm | ||
|
|
||
| import warnings | ||
|
|
||
| from tqdm.auto import tqdm # noqa: F401 | ||
|
|
||
| warnings.filterwarnings("ignore") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1530,7 +1530,7 @@ def test_results_getter(AutoMLTestEnv, X_y_binary): | |
|
|
||
| assert automl.results["pipeline_results"][0]["mean_cv_score"] == 1.0 | ||
|
|
||
| with pytest.raises(AttributeError, match="set attribute"): | ||
| with pytest.raises(AttributeError): | ||
|
||
| automl.results = 2.0 | ||
|
|
||
| automl.results["pipeline_results"][0]["mean_cv_score"] = 2.0 | ||
|
|
@@ -3846,13 +3846,13 @@ def test_score_batch_before_fitting_yields_error_nan_scores( | |
| def test_high_cv_check_no_warning_for_divide_by_zero(X_y_binary, dummy_binary_pipeline): | ||
| X, y = X_y_binary | ||
| automl = AutoMLSearch(X_train=X, y_train=y, problem_type="binary") | ||
| with pytest.warns(None) as warnings: | ||
| with warnings.catch_warnings(record=True) as automl_warnings: | ||
| # mean is 0 but std is not | ||
| automl._check_for_high_variance( | ||
| dummy_binary_pipeline, | ||
| cv_scores=[0.0, 1.0, -1.0], | ||
| ) | ||
| assert len(warnings) == 0 | ||
| assert len(automl_warnings) == 0 | ||
|
|
||
|
|
||
| @pytest.mark.parametrize( | ||
|
|
@@ -4367,7 +4367,7 @@ def dummy_mock_get_preprocessing_components(*args, **kwargs): | |
| mock_get_preprocessing_components.side_effect = ( | ||
| dummy_mock_get_preprocessing_components | ||
| ) | ||
| with pytest.warns(None) as warnings_logged: | ||
| with warnings.catch_warnings(record=True) as warnings_logged: | ||
| automl = AutoMLSearch( | ||
| X_train=X, | ||
| y_train=y, | ||
|
|
@@ -4850,7 +4850,7 @@ def test_search_parameters_held_automl( | |
| max_batches=batches, | ||
| ) | ||
| aml.search() | ||
| estimator_args = inspect.getargspec(RandomForestClassifier) | ||
| estimator_args = inspect.getfullargspec(RandomForestClassifier) | ||
| # estimator_args[0] gives the parameter names, while [3] gives the associated values | ||
| # estimator_args[0][i + 1] to skip 'self' in the estimator | ||
| # we do len - 1 in order to skip the random seed, which isn't present in the row['parameters'] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,35 +77,35 @@ dependencies = [ | |
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| "pytest == 7.1.2", | ||
| "pytest-xdist == 2.1.0", | ||
| "pytest-timeout == 1.4.2", | ||
| "pytest-cov == 2.10.1", | ||
| "nbval == 0.9.3", | ||
| "IPython >= 8.10.0, <8.12.1", | ||
| "PyYAML == 6.0.1", | ||
| "pytest >= 7.1.2", | ||
| "pytest-xdist >= 2.1.0", | ||
| "pytest-timeout >= 1.4.2", | ||
| "pytest-cov >= 2.10.1", | ||
| "nbval >= 0.9.3", | ||
| "IPython >= 8.10.0", | ||
| "PyYAML >= 6.0.1", | ||
| "coverage[toml] >= 6.4", | ||
| ] | ||
| dev = [ | ||
| "ruff == 0.0.228", | ||
| "darglint == 1.8.0", | ||
| "ruff >= 0.0.228", | ||
| "darglint >= 1.8.0", | ||
| "pre-commit >= 2.20.0", | ||
| "evalml[docs,test]", | ||
| ] | ||
| updater = [ | ||
| "alteryx-open-src-update-checker >= 2.1.0" | ||
| ] | ||
| docs = [ | ||
| "docutils >=0.15.2, < 0.17", | ||
| "docutils >= 0.15.2, < 0.17", | ||
| "pydata-sphinx-theme >= 0.3.1", | ||
| "astroid <= 2.6.6", | ||
| "Sphinx >= 5.0.0", | ||
| "nbconvert >= 6.5.0", | ||
| "nbsphinx >= 0.8.5, < 0.9.0", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A combination of nbsphinx, astroid, and docutils cause the |
||
| "sphinx-autoapi", | ||
| "sphinx-inline-tabs == 2022.1.2b11", | ||
| "sphinx-copybutton == 0.4.0", | ||
| "myst-parser == 0.18.0", | ||
| "sphinx-inline-tabs >= 2022.1.2b11", | ||
| "sphinx-copybutton >= 0.4.0", | ||
| "myst-parser >= 0.18.0", | ||
| ] | ||
| prophet = [ | ||
| "prophet >= 1.1.2", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.