Skip to content

Commit 471fa35

Browse files
committed
Run iSort in CI
1 parent cf2e910 commit 471fa35

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ install:
3737
script:
3838
- if [[ $TRAVIS_PYTHON_VERSION == "3.7" ]]; then black --check django_prometheus/; fi
3939
- flake8 django_prometheus
40+
- isort -rc django_prometheus/
4041
- coverage run --source=django_prometheus setup.py test
4142
- python setup.py sdist bdist_wheel
4243
- pushd django_prometheus/tests/end2end && PYTHONPATH=../../.. coverage run --source=django_prometheus manage.py test && popd

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Django>=1.11
22
django-redis>=4.8
33
black; python_version >= '3.6'
44
flake8
5+
isort
56
prometheus-client>=0.7
67
pip-prometheus>=1.2.1
78
mock

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
[flake8]
22
ignore = E501,W503
3+
4+
[isort]
5+
multi_line_output=3
6+
line_length=88
7+
force_grid_wrap=0
8+
include_trailing_comma=True

0 commit comments

Comments
 (0)