Skip to content

Commit

Permalink
Pre commit update (#1346)
Browse files Browse the repository at this point in the history
### What kind of change does this PR introduce?

* Updates pre-commit hook versions

### Does this PR introduce a breaking change?

No.

### Other information:

Setting [skip ci] in commit will prevent all workflows from being
triggered, whether you want them to or not.
  • Loading branch information
Zeitsperre authored Apr 3, 2023
2 parents c0a1b30 + 5a36270 commit cbb4371
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,31 @@ repos:
- id: pretty-format-json
args: ['--autofix', '--no-ensure-ascii', '--no-sort-keys']
- repo: https://github.com/pappasam/toml-sort
rev: v0.22.4
rev: v0.23.0
hooks:
- id: toml-sort-fix
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.30.0
hooks:
- id: yamllint
args: ['--config-file=.yamllint.yaml']
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: ['flake8-rst-docstrings']
args: ['--config=setup.cfg']
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ['--settings-file=pyproject.toml', "--add_imports='from __future__ import annotations'"]
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.3
rev: 1.7.0
hooks:
- id: nbqa-black
args: ['--target-version=py38']
Expand All @@ -66,12 +71,7 @@ repos:
- id: blackdoc
exclude: '(xclim/indices/__init__.py|docs/installation.rst)'
additional_dependencies:
- 'black==23.1.0'
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
hooks:
- id: yamllint
args: ['--config-file=.yamllint.yaml']
- 'black==23.3.0'
- repo: meta
hooks:
- id: check-hooks-apply
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
# Dev tools and testing
"black >=23.1",
"black >=23.3.0",
"blackdoc",
"bump2version",
"coverage[toml]",
Expand Down

0 comments on commit cbb4371

Please sign in to comment.