diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 80a94f490..bb45a186c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - id: yamllint args: [ '--config-file=.yamllint.yaml' ] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.3.0 + rev: 24.4.0 hooks: - id: black - repo: https://github.com/PyCQA/isort @@ -60,9 +60,11 @@ repos: hooks: - id: nbqa-pyupgrade args: [ '--py39-plus' ] + additional_dependencies: [ 'pyupgrade==3.15.2' ] - id: nbqa-black - additional_dependencies: [ 'black==24.3.0' ] + additional_dependencies: [ 'black==24.4.0' ] - id: nbqa-isort + additional_dependencies: [ 'isort==5.13.2' ] - repo: https://github.com/kynan/nbstripout rev: 0.7.1 hooks: @@ -73,7 +75,7 @@ repos: rev: v0.3.9 hooks: - id: blackdoc - additional_dependencies: [ 'black==24.3.0' ] + additional_dependencies: [ 'black==24.4.0' ] exclude: '(xclim/indices/__init__.py|docs/installation.rst)' - repo: https://github.com/codespell-project/codespell rev: v2.2.6 diff --git a/pyproject.toml b/pyproject.toml index d5a61354d..20ea95e52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ dependencies = [ [project.optional-dependencies] dev = [ # Dev tools and testing - "black ==24.3.0", + "black ==24.4.0", "blackdoc ==0.3.9", "bump-my-version >=0.17.1", "codespell",