mirror of
https://github.com/django-components/django-components.git
synced 2025-09-27 07:59:08 +00:00
Add flake8 and isort to CI.
This commit is contained in:
parent
b2f61b61ad
commit
ff2a674200
1 changed files with 26 additions and 2 deletions
28
tox.ini
28
tox.ini
|
@ -1,5 +1,13 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27-django111,py34-django{111,20},py35-django{111,20,21,22},py36-django{111,20,21,22,30},py37-django{111,20,21,22,30},py38-django{111,20,21,22,30}
|
envlist =
|
||||||
|
py27-django111
|
||||||
|
py34-django{111,20}
|
||||||
|
py35-django{111,20,21,22}
|
||||||
|
py36-django{111,20,21,22,30}
|
||||||
|
py37-django{111,20,21,22,30}
|
||||||
|
py38-django{111,20,21,22,30}
|
||||||
|
flake8
|
||||||
|
isort
|
||||||
|
|
||||||
[tox:travis]
|
[tox:travis]
|
||||||
2.7 = py27-django111
|
2.7 = py27-django111
|
||||||
|
@ -7,7 +15,7 @@ envlist = py27-django111,py34-django{111,20},py35-django{111,20,21,22},py36-djan
|
||||||
3.5 = py35-django{111,20,21,22}
|
3.5 = py35-django{111,20,21,22}
|
||||||
3.6 = py36-django{111,20,21,22,30}
|
3.6 = py36-django{111,20,21,22,30}
|
||||||
3.7 = py37-django{111,20,21,22,30}
|
3.7 = py37-django{111,20,21,22,30}
|
||||||
3.8 = py38-django{111,20,21,22,30}
|
3.8 = py38-django{111,20,21,22,30}, flake8, isort
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
|
@ -18,4 +26,20 @@ deps =
|
||||||
django21: Django>=2.1,<2.2
|
django21: Django>=2.1,<2.2
|
||||||
django22: Django>=2.2,<2.3
|
django22: Django>=2.2,<2.3
|
||||||
django30: Django>=3.0,<3.1
|
django30: Django>=3.0,<3.1
|
||||||
|
flake8
|
||||||
|
isort
|
||||||
commands = py.test {posargs}
|
commands = py.test {posargs}
|
||||||
|
|
||||||
|
[testenv:flake8]
|
||||||
|
# Note: Settings for flake8 exists in the setup.cfg file
|
||||||
|
changedir = {toxinidir}
|
||||||
|
deps = flake8
|
||||||
|
commands =
|
||||||
|
flake8 .
|
||||||
|
|
||||||
|
[testenv:isort]
|
||||||
|
# Note: Settings for isort exists in the setup.cfg file
|
||||||
|
changedir = {toxinidir}
|
||||||
|
deps = isort
|
||||||
|
commands =
|
||||||
|
isort --recursive --check-only --diff django-components
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue