Fix isorting issues.

Add isort to travis to catch future issues.
Move isort config to setup.cfg
This commit is contained in:
andrewgy8 2019-01-22 21:09:45 +01:00
parent 78023c9827
commit b04bd832d9
4 changed files with 18 additions and 9 deletions

View File

@ -1,9 +0,0 @@
[settings]
known_django=django
sections=FUTURE,STDLIB,THIRDPARTY,DJANGO,FIRSTPARTY,LOCALFOLDER
default_section=THIRDPARTY
known_standard_library=tablib
known_first_party=import_export
multi_line_output=3
line_length=100
indent=4

View File

@ -13,9 +13,15 @@ install:
- pip install -q $DJANGO
- pip install tablib==0.12.1
- pip install -r requirements/base.txt
- pip install -r requirements/test.txt
- pip install coveralls
script:
<<<<<<< Updated upstream
- python -Wall -m coverage run --omit='setup.py' --source=. tests/manage.py test core --settings=
=======
- python -Wall `which coverage` run --omit='setup.py' --source=. tests/manage.py test core --settings=
- isort --check-only
>>>>>>> Stashed changes
after_success:
- coveralls
matrix:

1
requirements/test.txt Normal file
View File

@ -0,0 +1 @@
isort

View File

@ -4,3 +4,14 @@ license_file = LICENSE
[zest.releaser]
create-wheel = yes
python-file-with-version = import_export/__init__.py
[isort]
known_django=django
skip=docs,migrations
sections=FUTURE,STDLIB,THIRDPARTY,DJANGO,FIRSTPARTY,LOCALFOLDER
default_section=THIRDPARTY
known_standard_library=tablib
known_first_party=import_export
multi_line_output=3
line_length=100
indent=4