Skip to content

Commit 2a94e6c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9a66587 commit 2a94e6c

File tree

12 files changed

+52
-53
lines changed

12 files changed

+52
-53
lines changed

openml/__init__.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,33 +91,33 @@ def populate_cache(
9191

9292

9393
__all__ = [
94-
"OpenMLDataset",
94+
"OpenMLBenchmarkSuite",
95+
"OpenMLClassificationTask",
96+
"OpenMLClusteringTask",
9597
"OpenMLDataFeature",
96-
"OpenMLRun",
97-
"OpenMLSplit",
98+
"OpenMLDataset",
9899
"OpenMLEvaluation",
99-
"OpenMLSetup",
100-
"OpenMLParameter",
101-
"OpenMLTask",
102-
"OpenMLSupervisedTask",
103-
"OpenMLClusteringTask",
100+
"OpenMLFlow",
104101
"OpenMLLearningCurveTask",
102+
"OpenMLParameter",
105103
"OpenMLRegressionTask",
106-
"OpenMLClassificationTask",
107-
"OpenMLFlow",
104+
"OpenMLRun",
105+
"OpenMLSetup",
106+
"OpenMLSplit",
108107
"OpenMLStudy",
109-
"OpenMLBenchmarkSuite",
108+
"OpenMLSupervisedTask",
109+
"OpenMLTask",
110+
"__version__",
111+
"_api_calls",
112+
"config",
110113
"datasets",
111114
"evaluations",
112115
"exceptions",
113116
"extensions",
114-
"config",
115-
"runs",
116117
"flows",
117-
"tasks",
118+
"runs",
118119
"setups",
119120
"study",
121+
"tasks",
120122
"utils",
121-
"_api_calls",
122-
"__version__",
123123
]

openml/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def get_server_base_url() -> str:
172172
-------
173173
str
174174
"""
175-
domain, path = server.split("/api", maxsplit=1)
175+
domain, _path = server.split("/api", maxsplit=1)
176176
return domain.replace("api", "www")
177177

178178

@@ -257,8 +257,8 @@ def stop_using_configuration_for_example(cls) -> None:
257257
global server # noqa: PLW0603
258258
global apikey # noqa: PLW0603
259259

260-
server = cast(str, cls._last_used_server)
261-
apikey = cast(str, cls._last_used_key)
260+
server = cast("str", cls._last_used_server)
261+
apikey = cast("str", cls._last_used_key)
262262
cls._start_last_called = False
263263

264264

@@ -515,10 +515,10 @@ def overwrite_config_context(config: dict[str, Any]) -> Iterator[_Config]:
515515

516516
__all__ = [
517517
"get_cache_directory",
518+
"get_config_as_dict",
518519
"set_root_cache_directory",
519520
"start_using_configuration_for_example",
520521
"stop_using_configuration_for_example",
521-
"get_config_as_dict",
522522
]
523523

524524
_setup()

openml/datasets/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
)
1818

1919
__all__ = [
20+
"OpenMLDataFeature",
21+
"OpenMLDataset",
2022
"attributes_arff_from_df",
2123
"check_datasets_active",
2224
"create_dataset",
25+
"delete_dataset",
26+
"edit_dataset",
27+
"fork_dataset",
2328
"get_dataset",
2429
"get_datasets",
2530
"list_datasets",
26-
"OpenMLDataset",
27-
"OpenMLDataFeature",
28-
"status_update",
2931
"list_qualities",
30-
"edit_dataset",
31-
"fork_dataset",
32-
"delete_dataset",
32+
"status_update",
3333
]

openml/evaluations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
__all__ = [
77
"OpenMLEvaluation",
8-
"list_evaluations",
98
"list_evaluation_measures",
9+
"list_evaluations",
1010
"list_evaluations_setups",
1111
]

openml/extensions/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
__all__ = [
1212
"Extension",
13-
"register_extension",
14-
"get_extension_by_model",
1513
"get_extension_by_flow",
14+
"get_extension_by_model",
15+
"register_extension",
1616
]

openml/flows/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
__all__ = [
1414
"OpenMLFlow",
15-
"get_flow",
16-
"list_flows",
17-
"get_flow_id",
18-
"flow_exists",
1915
"assert_flows_equal",
2016
"delete_flow",
17+
"flow_exists",
18+
"get_flow",
19+
"get_flow_id",
20+
"list_flows",
2121
]

openml/runs/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"OpenMLRun",
2020
"OpenMLRunTrace",
2121
"OpenMLTraceIteration",
22-
"run_model_on_task",
23-
"run_flow_on_task",
22+
"delete_run",
2423
"get_run",
25-
"list_runs",
26-
"get_runs",
2724
"get_run_trace",
28-
"run_exists",
25+
"get_runs",
2926
"initialize_model_from_run",
3027
"initialize_model_from_trace",
31-
"delete_run",
28+
"list_runs",
29+
"run_exists",
30+
"run_flow_on_task",
31+
"run_model_on_task",
3232
]

openml/setups/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from .setup import OpenMLParameter, OpenMLSetup
55

66
__all__ = [
7-
"OpenMLSetup",
87
"OpenMLParameter",
8+
"OpenMLSetup",
99
"get_setup",
10+
"initialize_model",
1011
"list_setups",
1112
"setup_exists",
12-
"initialize_model",
1313
]

openml/study/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from .study import OpenMLBenchmarkSuite, OpenMLStudy
2020

2121
__all__ = [
22-
"OpenMLStudy",
2322
"OpenMLBenchmarkSuite",
23+
"OpenMLStudy",
2424
"attach_to_study",
2525
"attach_to_suite",
2626
"create_benchmark_suite",
@@ -33,6 +33,6 @@
3333
"get_suite",
3434
"list_studies",
3535
"list_suites",
36-
"update_suite_status",
3736
"update_study_status",
37+
"update_suite_status",
3838
]

openml/study/functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# License: BSD 3-Clause
2-
# ruff: noqa: PLR0913
32
from __future__ import annotations
43

54
import warnings

0 commit comments

Comments
 (0)