Skip to content

Commit a5c6ed9

Browse files
committed
pre-commit: add isort, remove reorder-python-imports
1 parent 30f1b6a commit a5c6ed9

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,26 @@ repos:
2222
rev: 22.6.0
2323
hooks:
2424
- id: black
25-
args: [--target-version=py36]
25+
args:
26+
- --target-version=py37
27+
- --target-version=py38
28+
- --target-version=py39
29+
- --target-version=py310
30+
31+
# Autoformat: Python code
32+
- repo: https://github.com/pycqa/isort
33+
rev: 5.10.1
34+
hooks:
35+
- id: isort
36+
args:
37+
- --profile=black
2638

2739
# Autoformat: markdown, yaml
2840
- repo: https://github.com/pre-commit/mirrors-prettier
2941
rev: v2.7.1
3042
hooks:
3143
- id: prettier
3244

33-
# Autoformat: https://github.com/asottile/reorder_python_imports
34-
- repo: https://github.com/asottile/reorder_python_imports
35-
rev: v3.8.2
36-
hooks:
37-
- id: reorder-python-imports
38-
3945
# Misc...
4046
- repo: https://github.com/pre-commit/pre-commit-hooks
4147
rev: v4.3.0

0 commit comments

Comments
 (0)