Skip to content

Commit

Permalink
chore: update pre-commit hook versions
Browse files Browse the repository at this point in the history
Updated to latest versions, expect for black which we pin <24 since
black>=24 is incompatible with reorder-python-imports.

Ref: psf/black#4175
  • Loading branch information
dairiki committed Nov 13, 2024
1 parent ca0863a commit 0883e98
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
repos:
- repo: https://github.com/ambv/black
rev: "23.7.0"
# black >= 24 is incompatible with reorder-python-imports
# See https://github.com/psf/black/issues/4175
rev: "23.12.1"
hooks:
- id: black
- repo: https://github.com/asottile/reorder_python_imports
rev: "v3.10.0"
rev: "v3.14.0"
hooks:
- id: reorder-python-imports
args: ["--py38-plus"]
- repo: https://github.com/asottile/pyupgrade
rev: "v3.15.0"
rev: "v3.19.0"
hooks:
- id: pyupgrade
args: ["--py38-plus"]
- repo: https://github.com/pycqa/flake8
rev: "6.1.0"
rev: "7.1.1"
hooks:
- id: flake8
language_version: python3
additional_dependencies:
# NB: autoupdate does not pick up flake8-bugbear since it is a
# transitive dependency. Make sure to update flake8-bugbear
# manually on a regular basis.
- flake8-bugbear==23.7.10
- flake8-bugbear==24.10.31

- repo: local
hooks:
Expand Down

0 comments on commit 0883e98

Please sign in to comment.