diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f67191c4a1..997f26652d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,10 +37,10 @@ repos: ] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.0 hooks: - id: codespell - args: ["--toml", "pyproject.toml"] + args: ["--toml", "pyproject.toml", "--include-comments", "--include-docstrings"] additional_dependencies: ["tomli"] # - repo: https://github.com/PyCQA/docformatter diff --git a/doc/changelog.d/4496.dependencies.md b/doc/changelog.d/4496.dependencies.md new file mode 100644 index 00000000000..0a48789caf6 --- /dev/null +++ b/doc/changelog.d/4496.dependencies.md @@ -0,0 +1 @@ +Update codespell check in pre-commit. diff --git a/examples/00-fluent/DOE_ML.py b/examples/00-fluent/DOE_ML.py index 95e4c34bbc3..9e93aec39b6 100644 --- a/examples/00-fluent/DOE_ML.py +++ b/examples/00-fluent/DOE_ML.py @@ -255,7 +255,7 @@ def display_scores(scores): def fit_and_predict(model): - """Fit abd predict.""" + """Fit and predict.""" cv = RepeatedKFold(n_splits=5, n_repeats=3, random_state=42) cv_scores = cross_val_score( model, X_train, y_train, scoring="neg_mean_squared_error", cv=cv