update pre-commit

This commit is contained in:
Robert Resch 2022-08-25 11:08:04 +02:00
parent bfba75f0ad
commit 23a84dda04
29 changed files with 44 additions and 37 deletions

View file

@ -6,12 +6,12 @@ ci:
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
rev: v2.37.3
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.6.0
hooks:
- id: black
args:
@ -20,16 +20,17 @@ repos:
<<: &python-files-with-tests
files: ^((bumper|tests)/.+)?[^/]+\.py$
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.2.1
hooks:
- id: codespell
args:
- -L bumper
- --ignore-words-list=ihs,ro
- --skip="./.*,*.csv,*.json"
- --quiet-level=2
exclude_types: [csv, json]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
@ -51,24 +52,25 @@ repos:
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.3.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: detect-private-key
exclude: tests/test_certs
- id: no-commit-to-branch
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
rev: v2.7.1
hooks:
- id: prettier
additional_dependencies:
- prettier@2.6.2
- prettier-plugin-sort-json@0.0.2
- prettier@2.7.1
- prettier-plugin-sort-json@0.0.3
exclude_types:
- python
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
rev: v1.27.1
hooks:
- id: yamllint
- repo: local