Skip to content

Commit

Permalink
tox: checkqa: check isort via flake8-isort
Browse files Browse the repository at this point in the history
This moves the isort cfg to setup.cfg.
  • Loading branch information
blueyed committed Oct 17, 2017
1 parent fda68d4 commit 3b332f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 6 additions & 0 deletions setup.cfg
Expand Up @@ -4,3 +4,9 @@ universal = 1
[tool:pytest]
testpaths = pinax/stripe/tests
DJANGO_SETTINGS_MODULE = pinax.stripe.tests.settings

[isort]
multi_line_output=3
known_django=django
known_third_party=stripe,six,mock,appconf,jsonfield
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
9 changes: 1 addition & 8 deletions tox.ini
Expand Up @@ -5,12 +5,6 @@ max-complexity = 10
exclude = pinax/stripe/migrations/*,docs/*
inline-quotes = double

[isort]
multi_line_output=3
known_django=django
known_third_party=stripe,six,mock,appconf,jsonfield
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

[coverage:run]
source = pinax
omit = pinax/stripe/conf.py,pinax/stripe/tests/*,pinax/stripe/migrations/*
Expand Down Expand Up @@ -64,8 +58,7 @@ commands =
[testenv:checkqa]
commands =
flake8 pinax
isort --recursive --check-only --diff pinax -sp tox.ini
deps =
flake8 == 3.4.1
flake8-isort == 2.2.2
flake8-quotes == 0.11.0
isort == 4.2.15

0 comments on commit 3b332f9

Please sign in to comment.