Skip to content

Commit cb5ba13

Browse files
committed
Fix line lengths for flake8 (#1556)
1 parent 2649b3a commit cb5ba13

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

autosklearn/ensembles/abstract_ensemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def predict(
9797
def get_models_with_weights(
9898
self, models: Dict[Tuple[int, int, float], BasePipeline]
9999
) -> List[Tuple[float, BasePipeline]]:
100-
"""Return a list of (weight, model) pairs for all models included in the ensemble.
100+
"""List of (weight, model) pairs for all models included in the ensemble.
101101
102102
Parameters
103103
----------

autosklearn/ensembles/multiobjective_dummy_ensemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def get_selected_model_identifiers(self) -> list[tuple[int, int, float]]:
211211
return self.pareto_set[0].get_selected_model_identifiers()
212212

213213
def get_validation_performance(self) -> float:
214-
"""Return validation performance of the ensemble that is best for the 1st metric.
214+
"""Validation performance of the ensemble that is best for the 1st metric.
215215
216216
Returns
217217
-------

autosklearn/ensembles/singlebest_ensemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __str__(self) -> str:
114114
def get_models_with_weights(
115115
self, models: dict[tuple[int, int, float], BasePipeline]
116116
) -> list[tuple[float, BasePipeline]]:
117-
"""Return a list of (weight, model) pairs for the model selected by this ensemble.
117+
"""List of (weight, model) pairs for the model selected by this ensemble.
118118
119119
Parameters
120120
----------

test/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def pytest_runtest_setup(item: Item) -> None:
142142

143143

144144
def pytest_sessionstart(session: Session) -> None:
145-
"""Called after the ``Session`` object has been created and before performing collection
146-
and entering the run test loop.
145+
"""Called after the ``Session`` object has been created and before performing
146+
collection and entering the run test loop.
147147
148148
Parameters
149149
----------

test/test_estimators/test_estimators.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,13 +1713,8 @@ def test_autosklearn_anneal(as_frame):
17131713
"dataset_compression", [False, True, {"memory_allocation": 0.2}]
17141714
)
17151715
def test_param_dataset_compression(dataset_compression: Union[bool, Dict[str, Any]]):
1716-
"""We expect this does not get parsed and modified until it gets to the AutoML class,
1717-
In the meantime, it's value remains whatever was passed in.
1718-
1719-
Parameters
1720-
----------
1721-
dataset_compression: Union[bool, Dict[str, Any]
1722-
The arg to pass to the estimator
1716+
"""We expect this does not get parsed and modified until it gets to the AutoML
1717+
class, In the meantime, it's value remains whatever was passed in.
17231718
17241719
Expects
17251720
-------

test/test_pipeline/test_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def test_multilabel(self):
306306
self._test_configurations(configurations_space=cs, dataset=data)
307307

308308
def test_configurations(self):
309-
"""Tests a non-seeded random set of configurations with default dataset properties
309+
"""Test non-seeded random sets of configurations with default dataset properties
310310
311311
Expects
312312
-------

0 commit comments

Comments
 (0)