8000 MNT add isort to pre-commit hooks · scikit-learn/scikit-learn@9705422 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9705422

Browse files
committed
MNT add isort to pre-commit hooks
1 parent 0827534 commit 9705422

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ repos:
2020
- id: mypy
2121
files: sklearn/
2222
additional_dependencies: [pytest==6.2.4]
23+
- repo: https://github.com/PyCQA/isort
24+
rev: 5.10.1
25+
hooks:
26+
- id: isort

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ exclude = '''
3333
| asv_benchmarks/env
3434
)/
3535
'''
36+
37+
[tool.isort]
38+
profile = "black"

0 commit comments

Comments
 (0)
0