Skip to content

Commit 7a9f676

Browse files
committed
Replace reorder-python-imports, remove pyupgrade
Do to conflicts against the format of `black`, the tool `reorder-python-imports` is replaced with `isort`. Removing `pyupgrade` to reduce tool opinionation further.
1 parent 10e4ce0 commit 7a9f676

1 file changed

Lines changed: 5 additions & 18 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,12 @@ repos:
1212
- id: debug-statements
1313
- id: mixed-line-ending
1414

15-
# Adds a standard feel to import segments, adds future annotations
16-
- repo: https://github.com/asottile/reorder-python-imports
17-
rev: v3.12.0
15+
# Adds a standard feel to import segments
16+
- repo: https://github.com/pycqa/isort
17+
rev: 5.5.4
1818
hooks:
19-
- id: reorder-python-imports
20-
args:
21-
- "--py37-plus"
22-
- "--add-import"
23-
- "from __future__ import annotations"
24-
- "--application-directories"
25-
- ".:src"
26-
27-
# Automatically upgrade syntax to newer versions
28-
- repo: https://github.com/asottile/pyupgrade
29-
rev: v3.15.0
30-
hooks:
31-
- id: pyupgrade
32-
args:
33-
- "--py38-plus"
19+
- id: isort
20+
args: ["--profile", "black"]
3421

3522
# Format code. No, I don't like everything black does either.
3623
- repo: https://github.com/psf/black-pre-commit-mirror

0 commit comments

Comments
 (0)