Skip to content

Commit c5b30b5

Browse files
committed
add the isort deps.
1 parent e65b0d7 commit c5b30b5

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.githooks/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TOX_PARALLEL_NO_SPINNER=1,
77
PY_COLORS=0
88
start_time=`date +%s`
99
tox -e flake8,pylint,docstyle,black-check,twine --parallel all
10-
./ci-scripts/displaytime.sh 'flake8,pylint,docstyle,black-check,twine' $start_time
10+
./ci-scripts/displaytime.sh 'flake8,pylint,docstyle,black-check,isort-check,twine' $start_time
1111
start_time=`date +%s`
1212
tox -e sphinx,doc8 --parallel all
1313
./ci-scripts/displaytime.sh 'sphinx,doc8' $start_time
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
isort

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ ignore =
4949

5050
require-code = True
5151

52+
[isort]
53+
profile = black
54+
src_paths = src,tests
55+
skip_glob = .venv, __pycache__, .tox, build, dist
56+
5257
[doc8]
5358
ignore-path=.tox,src/sagemaker.egg-info
5459
# TODO: fix files before enabling max-line-length (D001)
@@ -110,6 +115,12 @@ commands =
110115
flake8
111116
basepython = python3.12
112117

118+
[testenv:isort-check]
119+
deps = isort
120+
commands =
121+
isort --check-only --diff .
122+
isort .
123+
113124
[testenv:pylint]
114125
skipdist = true
115126
skip_install = true

0 commit comments

Comments
 (0)