Skip to content

Commit 8384168

Browse files
chore: Format
Not sure how ruff didn't catch these in previous PRs.
1 parent a209d9a commit 8384168

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

skore/src/skore/_sklearn/_estimator/metrics_accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ def _get_display(
17011701
else:
17021702
cache_key_parts: list[Any] = [self._parent._hash, display_class.__name__]
17031703
for kwarg in display_kwargs.values():
1704-
# NOTE: We cannot use lists in cache keys because they are not hashable
1704+
# NOTE: We cannot use lists in cache keys because they are not hashable
17051705
if isinstance(kwarg, list):
17061706
kwarg = tuple(kwarg)
17071707
cache_key_parts.append(kwarg)

skore/tests/unit/displays/table_report/test_common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@
1313
)
1414

1515

16-
@pytest.fixture(scope='module')
16+
@pytest.fixture(scope="module")
1717
def X_y():
1818
X, y = make_regression(n_samples=100, n_features=5, random_state=42)
1919
X = pd.DataFrame(X, columns=[f"Feature_{i}" for i in range(5)])
2020
y = pd.Series(y, name="Target_")
2121
return X, y
2222

2323

24-
@pytest.fixture(scope='module')
24+
@pytest.fixture(scope="module")
2525
def estimator_report(X_y):
2626
X, y = X_y
2727
split_data = train_test_split(X, y, random_state=0, as_dict=True)
2828
return EstimatorReport(tabular_pipeline("regressor"), **split_data)
2929

3030

31-
@pytest.fixture(scope='module')
31+
@pytest.fixture(scope="module")
3232
def cross_validation_report(X_y):
3333
X, y = X_y
3434
return CrossValidationReport(tabular_pipeline("regressor"), X=X, y=y)
3535

3636

37-
@pytest.fixture(params=["estimator_report", "cross_validation_report"], scope='module')
37+
@pytest.fixture(params=["estimator_report", "cross_validation_report"], scope="module")
3838
def display(request):
3939
report = request.getfixturevalue(request.param)
4040
return report.data.analyze()

0 commit comments

Comments
 (0)