Skip to content
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TOX_PARALLEL_NO_SPINNER=1,
PY_COLORS=0
start_time=`date +%s`
tox -e flake8,pylint,docstyle,black-check,twine --parallel all
./ci-scripts/displaytime.sh 'flake8,pylint,docstyle,black-check,twine' $start_time
./ci-scripts/displaytime.sh 'flake8,pylint,docstyle,black-check,isort-check,twine' $start_time
start_time=`date +%s`
tox -e sphinx,doc8 --parallel all
./ci-scripts/displaytime.sh 'sphinx,doc8' $start_time
Expand Down
1 change: 1 addition & 0 deletions requirements/tox/isort_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
isort
13 changes: 12 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[tox]
isolated_build = true
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py39,py310,py311,py312
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py39,py310,py311,py312,isort

skip_missing_interpreters = False

Expand Down Expand Up @@ -49,6 +49,11 @@ ignore =

require-code = True

[isort]
profile = black
src_paths = src,tests
skip_glob = .venv, __pycache__, .tox, build, dist

[doc8]
ignore-path=.tox,src/sagemaker.egg-info
# TODO: fix files before enabling max-line-length (D001)
Expand Down Expand Up @@ -111,6 +116,12 @@ commands =
flake8
basepython = python3.12

[testenv:isort-check]
deps = isort
commands =
isort --check-only --diff .
isort .

[testenv:pylint]
skipdist = true
skip_install = true
Expand Down