Skip to content

Commit b1b8fa2

Browse files
committed
lint: Run isort
1 parent 1c4d11a commit b1b8fa2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ install:
1212
- if [[ $TRAVIS_PYTHON_VERSION != 3.5 ]]; then pip install black==19.10b0; fi
1313
script:
1414
- if [[ $TRAVIS_PYTHON_VERSION != 3.5 ]]; then black --check *.py */; fi
15-
- isort --check-only --recursive *.py */
15+
# isort 5 only runs under Python >= 3.6
16+
- if [[ $TRAVIS_PYTHON_VERSION != 3.5 ]]; then isort --check-only --recursive *.py */; fi
1617
- flake8
1718
- py.test --cov .
1819
after_success: coveralls

flattentool/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from flattentool.json_input import BadlyFormedJSONError
1010
from flattentool.output import FORMATS as OUTPUT_FORMATS
1111

12-
1312
"""
1413
This file does most of the work of the flatten-tool commandline command.
1514

flattentool/schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
if sys.version_info[:2] > (3, 0):
1616
import pathlib
1717
else:
18-
import urlparse, urllib
18+
import urllib
19+
20+
import urlparse
1921

2022

2123
def get_property_type_set(property_schema_dict):

0 commit comments

Comments
 (0)