Skip to content

Commit 6b3ec42

Browse files
committed
Fix CI for isort 5
1 parent 44b9819 commit 6b3ec42

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ci/travis.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ python setup.py sdist --formats=zip
4545
pip install dist/*.zip
4646

4747
if [ "$CHECK_FORMATTING" = "1" ]; then
48-
pip install yapf==${YAPF_VERSION} isort
48+
pip install yapf==${YAPF_VERSION} isort>=5
4949
if ! yapf -rpd setup.py src tests; then
5050
cat <<EOF
5151
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -67,15 +67,15 @@ EOF
6767
# required for isort to order test imports correctly
6868
pip install -Ur test-requirements.txt
6969

70-
if ! isort --recursive --check-only --diff . ; then
70+
if ! isort --check-only --diff . ; then
7171
cat <<EOF
7272
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7373
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7474
7575
Formatting problems were found (listed above). To fix them, run
7676
7777
pip install isort
78-
isort --recursive .
78+
isort .
7979
8080
in your local checkout.
8181

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ universal = 1
44
[isort]
55
multi_line_output = 4
66
skip = ./build, ./docs
7-
not_skip = __init__.py
87
# ci/travis.sh installs outcome normally, so isort assumes it's third party
98
known_first_party = outcome
109

0 commit comments

Comments
 (0)