Skip to content

Commit

Permalink
add pre-commit for codespell, update hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Jan 3, 2024
1 parent 01368b8 commit f4498f6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.1.11
hooks:
- id: ruff
- repo: https://github.com/pycqa/flake8
Expand All @@ -53,10 +53,12 @@ repos:
rev: 1.7.1
hooks:
- id: nbqa-pyupgrade
additional_dependencies: [ 'pyupgrade==3.15.0' ]
args: [ '--py38-plus' ]
- id: nbqa-black
additional_dependencies: [ 'black==23.12.1' ]
- id: nbqa-isort
additional_dependencies: [ 'isort==5.13.2' ]
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
Expand All @@ -69,6 +71,11 @@ repos:
- id: blackdoc
additional_dependencies: [ 'black==23.12.1' ]
exclude: '(xclim/indices/__init__.py|docs/installation.rst)'
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies: [ 'tomli' ]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
Expand Down

0 comments on commit f4498f6

Please sign in to comment.