From ddac9fd4708bca38e68d2802deab256bc64a30fa Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:16:52 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 24.10.0 → 25.1.0](https://github.com/psf/black-pre-commit-mirror/compare/24.10.0...25.1.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.4) - [github.com/pylint-dev/pylint: v3.3.3 → v3.3.4](https://github.com/pylint-dev/pylint/compare/v3.3.3...v3.3.4) - [github.com/executablebooks/mdformat: 0.7.21 → 0.7.22](https://github.com/executablebooks/mdformat/compare/0.7.21...0.7.22) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) - [github.com/gitleaks/gitleaks: v8.22.1 → v8.23.3](https://github.com/gitleaks/gitleaks/compare/v8.22.1...v8.23.3) - [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.30.0...0.31.1) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dc6e4d50c..9aa9593c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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' ] @@ -82,7 +82,7 @@ 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' @@ -94,7 +94,7 @@ repos: 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' ] @@ -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 From 966fd4515cb8bab70a0ee22e532fb989b3e30f76 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:18:14 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .pre-commit-config.yaml | 2 +- src/xclim/core/locales.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9aa9593c7..82440c49e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -90,7 +90,7 @@ repos: 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 diff --git a/src/xclim/core/locales.py b/src/xclim/core/locales.py index bde4c411f..a3526bedb 100644 --- a/src/xclim/core/locales.py +++ b/src/xclim/core/locales.py @@ -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. From 0d8e3240bf1ac0ef9567ee70b5535b6fe122cba7 Mon Sep 17 00:00:00 2001 From: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com> Date: Tue, 4 Feb 2025 13:46:28 -0500 Subject: [PATCH 3/3] fix typos --- pyproject.toml | 2 +- src/xclim/indices/_agro.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5e3ee7f80..412ae45f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/src/xclim/indices/_agro.py b/src/xclim/indices/_agro.py index 52726c3f9..6a3291413 100644 --- a/src/xclim/indices/_agro.py +++ b/src/xclim/indices/_agro.py @@ -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.