Skip to content

Commit 899a6cf

Browse files
committed
Replace reorder-python-imports by isort due to black incompatibility
Unfortunately black and reorder-python-imports are no longer compatible, and from the looks of it probably will not be compatible anytime soon: asottile/reorder-python-imports#367 asottile/reorder-python-imports#366 psf/black#4175 This replaces `reorder-python-imports` by `isort` configured in a way to yield roughtly the same results. Closes #11885
1 parent 407d984 commit 899a6cf

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.12.1
3+
rev: 24.1.1
44
hooks:
55
- id: black
66
args: [--safe, --quiet]
@@ -36,11 +36,12 @@ repos:
3636
additional_dependencies:
3737
- flake8-typing-imports==1.12.0
3838
- flake8-docstrings==1.5.0
39-
- repo: https://github.com/asottile/reorder-python-imports
40-
rev: v3.12.0
39+
- repo: https://github.com/pycqa/isort
40+
rev: 5.13.2
4141
hooks:
42-
- id: reorder-python-imports
43-
args: ['--application-directories=.:src', --py38-plus]
42+
- id: isort
43+
name: isort
44+
args: [--force-single-line, --profile=black]
4445
- repo: https://github.com/asottile/pyupgrade
4546
rev: v3.15.0
4647
hooks:

0 commit comments

Comments
 (0)