Skip to content

Commit 303ffa1

Browse files
Update pre-commit black version to 25.10.0 (#870)
1 parent 7cceed1 commit 303ffa1

7 files changed

+3
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
exclude: notebooks
1111
exclude_types: [svg]
1212
- repo: https://github.com/psf/black
13-
rev: 23.1.0
13+
rev: 25.11.0
1414
hooks:
1515
- id: black
1616
- repo: https://github.com/astral-sh/ruff-pre-commit

python_scripts/datasets_ames_housing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169
from sklearn.impute import SimpleImputer
170170
from sklearn.pipeline import make_pipeline
171171

172-
173172
numerical_features = [
174173
"LotFrontage",
175174
"LotArea",

python_scripts/ensemble_bagging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ def bootstrap_sample(data, target, seed=0):
355355
from sklearn.preprocessing import MinMaxScaler
356356
from sklearn.pipeline import make_pipeline
357357

358-
359358
polynomial_regressor = make_pipeline(
360359
MinMaxScaler(),
361360
PolynomialFeatures(degree=4, include_bias=False),

python_scripts/feature_selection_introduction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
from sklearn.feature_selection import f_classif
5858
from sklearn.pipeline import make_pipeline
5959

60-
6160
model_with_selection = make_pipeline(
6261
SelectKBest(score_func=f_classif, k=2),
6362
RandomForestClassifier(n_jobs=2),

python_scripts/linear_models_feature_engineering_classification.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
import matplotlib.pyplot as plt
8585
from matplotlib.colors import ListedColormap
8686

87-
8887
_, axs = plt.subplots(ncols=3, figsize=(14, 4), constrained_layout=True)
8988

9089
common_scatter_plot_params = dict(

python_scripts/parameter_tuning_sol_03.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
from sklearn.model_selection import RandomizedSearchCV
7676

7777
param_distributions = {
78-
"kneighborsregressor__n_neighbors": np.logspace(0, 3, num=10).astype(
79-
np.int32
78+
"kneighborsregressor__n_neighbors": (
79+
np.logspace(0, 3, num=10).astype(np.int32)
8080
),
8181
"standardscaler__with_mean": [True, False],
8282
"standardscaler__with_std": [True, False],

python_scripts/trees_sol_01.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070

7171
from sklearn.inspection import DecisionBoundaryDisplay
7272

73-
7473
tab10_norm = mpl.colors.Normalize(vmin=-0.5, vmax=8.5)
7574

7675
palette = ["tab:blue", "tab:green", "tab:orange"]

0 commit comments

Comments
 (0)