Skip to content

Commit

Permalink
Replace reorder-python-imports by isort
Browse files Browse the repository at this point in the history
Unfortunately `black` and `reorder-python-imports` are no longer compatible between each other, and will not be in the foreseeable feature:

asottile/reorder-python-imports#367
asottile/reorder-python-imports#366
psf/black#4175

Drop `reorder-python-imports` in favor of `isort`.
  • Loading branch information
nicoddemus committed Jan 30, 2024
1 parent b06603c commit aeaa1e2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Expand Up @@ -16,11 +16,12 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: reorder-python-imports
args: ['--application-directories=.:src', --py36-plus]
- id: isort
name: isort
args: ["--force-single-line", "--line-length=100", "--profile=black"]
- repo: local
hooks:
- id: rst
Expand Down

0 comments on commit aeaa1e2

Please sign in to comment.