Skip to content

Commit a6b5a3f

Browse files
[pre-commit.ci] pre-commit autoupdate (#2647)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bouwe Andela <[email protected]>
1 parent 2405d95 commit a6b5a3f

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ repos:
2828
hooks:
2929
- id: yamllint
3030
- repo: https://github.com/codespell-project/codespell
31-
rev: 'v2.3.0'
31+
rev: 'v2.4.0'
3232
hooks:
3333
- id: codespell
3434
additional_dependencies: [tomli] # required for Python 3.10
3535
- repo: https://github.com/astral-sh/ruff-pre-commit
36-
rev: "v0.9.2"
36+
rev: "v0.9.3"
3737
hooks:
3838
- id: ruff
3939
args: [--fix]

doc/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ Improvements
11721172
- Speed up provenance recording (:pull:`1327`) by :user:`bouweandela`
11731173
- Improve results web page (:pull:`1332`) by :user:`bouweandela`
11741174
- Move institutes from config-developer.yml to default extra facets config and add wildcard support for extra facets (:pull:`1259`) by :user:`bouweandela`
1175-
- Add support for re-using preprocessor output from previous runs (:pull:`1321`) by :user:`bouweandela`
1175+
- Add support for reusing preprocessor output from previous runs (:pull:`1321`) by :user:`bouweandela`
11761176
- Log fewer messages to screen and hide stack trace for known recipe errors (:pull:`1296`) by :user:`bouweandela`
11771177
- Log ESMValCore and ESMValTool versions when running (:pull:`1263`) by :user:`jvegreg`
11781178
- Add "grid" as a tag to the output file template for CMIP6 (:pull:`1356`) by :user:`zklaus`

doc/recipe/overview.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,8 @@ the absolute path to the diagnostic:
695695
This way the user may test a new diagnostic thoroughly before committing to the
696696
GitHub repository and including it in the ESMValTool diagnostics library.
697697

698-
Re-using parameters from one ``script`` to another
699-
--------------------------------------------------
698+
Reusing parameters from one ``script`` to another
699+
-------------------------------------------------
700700
Due to ``yaml`` features it is possible to recycle entire diagnostics sections
701701
for use with other diagnostics. Here is an example:
702702

esmvalcore/_recipe/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ def _create_preprocessor_tasks(
10831083
)
10841084
if prev_preproc_dir.exists():
10851085
logger.info(
1086-
"Re-using preprocessed files from %s for %s",
1086+
"Reusing preprocessed files from %s for %s",
10871087
prev_preproc_dir,
10881088
task_name,
10891089
)

esmvalcore/_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def __repr__(self):
330330

331331

332332
class ResumeTask(BaseTask):
333-
"""Task for re-using preprocessor output files from a previous run."""
333+
"""Task for reusing preprocessor output files from a previous run."""
334334

335335
def __init__(self, prev_preproc_dir, preproc_dir, name):
336336
"""Create a resume task."""

esmvalcore/preprocessor/_regrid_unstructured.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def _calculate_weights(
344344
src_points: np.ndarray,
345345
tgt_points: np.ndarray,
346346
) -> tuple[np.ndarray, np.ndarray]:
347-
"""Calculate regridding weights using Delaunay triagulation.
347+
"""Calculate regridding weights using Delaunay triangulation.
348348
349349
Partly taken from https://stackoverflow.com/a/20930910.
350350

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ enable_error_code = [
169169

170170
[tool.codespell]
171171
skip = "*.ipynb,esmvalcore/config/extra_facets/ipslcm-mappings.yml,tests/sample_data/iris-sample-data/LICENSE"
172-
ignore-words-list = "vas,hist,oce"
172+
ignore-words-list = "emac,hist,oce,vas"
173173

174174
[tool.ruff]
175175
line-length = 79

tests/integration/test_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def _get_single_base_task():
214214
def test_base_task_names():
215215
task = _get_single_base_task()
216216
assert task.name == "task0"
217-
ancestor_names = [anc.name for anc in task.ancestors]
217+
ancestor_names = [ancestor.name for ancestor in task.ancestors]
218218
assert ancestor_names == ["task0-ancestor0", "task0-ancestor1"]
219219

220220

@@ -251,7 +251,7 @@ def test_py_diagnostic_task_constructor(tmp_path):
251251
diag_script = tmp_path / "diag_cow.py"
252252
task = _get_single_diagnostic_task(tmp_path, diag_script)
253253
assert task.name == "task0"
254-
ancestor_names = [anc.name for anc in task.ancestors]
254+
ancestor_names = [ancestor.name for ancestor in task.ancestors]
255255
assert ancestor_names == ["task0-ancestor0", "task0-ancestor1"]
256256
assert task.script == diag_script
257257
assert task.settings == {

tests/unit/preprocessor/_other/test_other.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def cube_with_rich_metadata():
325325
psur = AuxCoord([[0]], var_name="ps", units="Pa")
326326
sigma_factory = AtmosphereSigmaFactory(ptop, sigma, psur)
327327
cell_area = CellMeasure([[1]], var_name="area", units="m2", measure="area")
328-
anc = AncillaryVariable([0], var_name="anc")
328+
ancillary = AncillaryVariable([0], var_name="ancillary")
329329
cube = Cube(
330330
np.ones((1, 1, 1, 1), dtype=np.float32),
331331
standard_name=None,
@@ -337,7 +337,7 @@ def cube_with_rich_metadata():
337337
dim_coords_and_dims=[(time, 0), (sigma, 1), (lat, 2), (lon, 3)],
338338
aux_coords_and_dims=[(ptop, ()), (psur, (2, 3))],
339339
aux_factories=[sigma_factory],
340-
ancillary_variables_and_dims=[(anc, 1)],
340+
ancillary_variables_and_dims=[(ancillary, 1)],
341341
cell_measures_and_dims=[(cell_area, (2, 3))],
342342
)
343343
return cube

0 commit comments

Comments
 (0)