Skip to content

Commit 1ab6060

Browse files
authored
[pre-commit.ci] pre-commit autoupdate (#2065)
<!--pre-commit.ci start--> updates: - [github.com/psf/black-pre-commit-mirror: 24.10.0 → 25.1.0](psf/black-pre-commit-mirror@24.10.0...25.1.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](astral-sh/ruff-pre-commit@v0.8.6...v0.9.4) - [github.com/pylint-dev/pylint: v3.3.3 → v3.3.4](pylint-dev/pylint@v3.3.3...v3.3.4) - [github.com/executablebooks/mdformat: 0.7.21 → 0.7.22](hukkin/mdformat@0.7.21...0.7.22) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](codespell-project/codespell@v2.3.0...v2.4.1) - [github.com/gitleaks/gitleaks: v8.22.1 → v8.23.3](gitleaks/gitleaks@v8.22.1...v8.23.3) - [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.1](python-jsonschema/check-jsonschema@0.30.0...0.31.1) <!--pre-commit.ci end-->
2 parents b0b2193 + 0d8e324 commit 1ab6060

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.pre-commit-config.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ repos:
3333
- id: yamllint
3434
args: [ '--config-file=.yamllint.yaml' ]
3535
- repo: https://github.com/psf/black-pre-commit-mirror
36-
rev: 24.10.0
36+
rev: 25.1.0
3737
hooks:
3838
- id: black
3939
- repo: https://github.com/astral-sh/ruff-pre-commit
40-
rev: v0.8.6
40+
rev: v0.9.4
4141
hooks:
4242
- id: ruff
4343
args: [ '--fix', '--show-fixes' ]
4444
- repo: https://github.com/pylint-dev/pylint
45-
rev: v3.3.3
45+
rev: v3.3.4
4646
hooks:
4747
- id: pylint
4848
args: [ '--rcfile=.pylintrc.toml', '--errors-only', '--jobs=0', '--disable=import-error' ]
@@ -82,19 +82,19 @@ repos:
8282
- id: rst-inline-touching-normal
8383
- id: text-unicode-replacement-char
8484
- repo: https://github.com/executablebooks/mdformat
85-
rev: 0.7.21
85+
rev: 0.7.22
8686
hooks:
8787
- id: mdformat
8888
exclude: '.github/\w+.md|.github/publish-mastodon-template.md|docs/paper/paper.md'
8989
- repo: https://github.com/keewis/blackdoc
9090
rev: v0.3.9
9191
hooks:
9292
- id: blackdoc
93-
additional_dependencies: [ 'black==24.10.0' ]
93+
additional_dependencies: [ 'black==25.1.0' ]
9494
exclude: '(src/xclim/indices/__init__.py|docs/installation.rst)'
9595
- id: blackdoc-autoupdate-black
9696
- repo: https://github.com/codespell-project/codespell
97-
rev: v2.3.0
97+
rev: v2.4.1
9898
hooks:
9999
- id: codespell
100100
additional_dependencies: [ 'tomli' ]
@@ -106,11 +106,11 @@ repos:
106106
# Exclude the missing submodule from the xclim.core, see:
107107
exclude: ^docs/|^tests/|^src/xclim/sdba|^src/xclim/core/missing.py
108108
- repo: https://github.com/gitleaks/gitleaks
109-
rev: v8.22.1
109+
rev: v8.23.3
110110
hooks:
111111
- id: gitleaks
112112
- repo: https://github.com/python-jsonschema/check-jsonschema
113-
rev: 0.30.0
113+
rev: 0.31.1
114114
hooks:
115115
- id: check-github-workflows
116116
- id: check-readthedocs

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ values = [
168168

169169
[tool.codespell]
170170
skip = '*xclim/data/*.json,*docs/_build,*docs/notebooks/xclim_training/*.ipynb,*docs/references.bib,*.gz,*.nc,*.png,*.svg,*.whl'
171-
ignore-words-list = "absolue,astroid,bloc,bui,callendar,degreee,environnement,hanel,inferrable,lond,nam,nd,ot,ressources,socio-economic,sie,vas"
171+
ignore-words-list = "absolue,astroid,bloc,bui,callendar,degreee,environnement,hanel,indx,inferrable,lond,nam,nd,ot,ressources,socio-economic,sie,vas"
172172

173173
[tool.coverage.run]
174174
relative_files = true

src/xclim/core/locales.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def get_local_attrs(
207207

208208

209209
def get_local_formatter(
210-
locale: str | Sequence[str] | tuple[str, dict]
210+
locale: str | Sequence[str] | tuple[str, dict],
211211
) -> AttrFormatter:
212212
"""
213213
Return an AttrFormatter instance for the given locale.

src/xclim/indices/_agro.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ def standardized_precipitation_index(
12021202
... cal_start=cal_start,
12031203
... cal_end=cal_end,
12041204
... ) # Computing SPI-3 months using a gamma distribution for the fit
1205-
>>> # Fitting parameters can also be obtained first, then re-used as input.
1205+
>>> # Fitting parameters can also be obtained first, then reused as input.
12061206
>>> # To properly reproduce the example, we also need to specify that we use a
12071207
>>> # (potentially) zero-inflated distribution. For a monthly SPI, this should rarely
12081208
>>> # make a difference.

0 commit comments

Comments
 (0)