Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2065)
Browse files Browse the repository at this point in the history
<!--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-->
  • Loading branch information
Zeitsperre authored Feb 4, 2025
2 parents b0b2193 + 0d8e324 commit 1ab6060
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ repos:
- id: yamllint
args: [ '--config-file=.yamllint.yaml' ]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.4
hooks:
- id: ruff
args: [ '--fix', '--show-fixes' ]
- repo: https://github.com/pylint-dev/pylint
rev: v3.3.3
rev: v3.3.4
hooks:
- id: pylint
args: [ '--rcfile=.pylintrc.toml', '--errors-only', '--jobs=0', '--disable=import-error' ]
Expand Down Expand Up @@ -82,19 +82,19 @@ repos:
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.21
rev: 0.7.22
hooks:
- id: mdformat
exclude: '.github/\w+.md|.github/publish-mastodon-template.md|docs/paper/paper.md'
- repo: https://github.com/keewis/blackdoc
rev: v0.3.9
hooks:
- id: blackdoc
additional_dependencies: [ 'black==24.10.0' ]
additional_dependencies: [ 'black==25.1.0' ]
exclude: '(src/xclim/indices/__init__.py|docs/installation.rst)'
- id: blackdoc-autoupdate-black
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies: [ 'tomli' ]
Expand All @@ -106,11 +106,11 @@ repos:
# Exclude the missing submodule from the xclim.core, see:
exclude: ^docs/|^tests/|^src/xclim/sdba|^src/xclim/core/missing.py
- repo: https://github.com/gitleaks/gitleaks
rev: v8.22.1
rev: v8.23.3
hooks:
- id: gitleaks
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.30.0
rev: 0.31.1
hooks:
- id: check-github-workflows
- id: check-readthedocs
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ values = [

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

[tool.coverage.run]
relative_files = true
Expand Down
2 changes: 1 addition & 1 deletion src/xclim/core/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def get_local_attrs(


def get_local_formatter(
locale: str | Sequence[str] | tuple[str, dict]
locale: str | Sequence[str] | tuple[str, dict],
) -> AttrFormatter:
"""
Return an AttrFormatter instance for the given locale.
Expand Down
2 changes: 1 addition & 1 deletion src/xclim/indices/_agro.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ def standardized_precipitation_index(
... cal_start=cal_start,
... cal_end=cal_end,
... ) # Computing SPI-3 months using a gamma distribution for the fit
>>> # Fitting parameters can also be obtained first, then re-used as input.
>>> # Fitting parameters can also be obtained first, then reused as input.
>>> # To properly reproduce the example, we also need to specify that we use a
>>> # (potentially) zero-inflated distribution. For a monthly SPI, this should rarely
>>> # make a difference.
Expand Down

0 comments on commit 1ab6060

Please sign in to comment.