Skip to content

Commit b0a6842

Browse files
committed
use isort instead of reorder-python-imports hook
1 parent 644c82d commit b0a6842

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ repos:
4747
- id: pyupgrade
4848
args: [--py310-plus]
4949

50-
- repo: https://github.com/asottile/reorder-python-imports
51-
rev: v3.14.0
50+
- repo: https://github.com/PyCQA/isort
51+
rev: 5.13.2
5252
hooks:
53-
- id: reorder-python-imports
54-
args: [--py310-plus, --add-import, "from __future__ import annotations"]
53+
- id: isort
54+
name: isort (python)
55+
args: [--add-import, "from __future__ import annotations"]
56+
types: [python]
5557

5658
- repo: https://github.com/pre-commit/pre-commit-hooks
5759
rev: v5.0.0

0 commit comments

Comments
 (0)