Skip to content

Commit 2bc9601

Browse files
authoredDec 3, 2022
MAINT use isort for imports (#948)
1 parent 4714869 commit 2bc9601

File tree

106 files changed

+386
-491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+386
-491
lines changed
 

‎.pre-commit-config.yaml

+4
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

‎azure-pipelines.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@ jobs:
4545
versionSpec: '3.9'
4646
- bash: |
4747
# Include pytest compatibility with mypy
48-
pip install pytest flake8 mypy==0.782 black==22.3
48+
pip install pytest flake8 mypy==0.782 black==22.3 isort
4949
displayName: Install linters
5050
- bash: |
5151
black --check --diff .
5252
displayName: Run black
53+
- bash: |
54+
isort --check --diff .
55+
displayName: Run isort
5356
- bash: |
5457
./build_tools/azure/linting.sh
5558
displayName: Run linting

0 commit comments

Comments
 (0)