Fix isorting issues.
Add isort to travis to catch future issues. Move isort config to setup.cfg
This commit is contained in:
parent
78023c9827
commit
b04bd832d9
|
@ -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
|
|
@ -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:
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
isort
|
11
setup.cfg
11
setup.cfg
|
@ -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
|
Loading…
Reference in New Issue