2019-01-02 16:20:37 -07:00
|
|
|
[tox]
|
2019-04-27 04:56:53 -06:00
|
|
|
envlist = {py2,py3}-{flake8,isort,yapf},pytest,py2,py3
|
2019-01-02 16:20:37 -07:00
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
deps =
|
2019-05-09 05:39:19 -06:00
|
|
|
flake8==3.7.7
|
2019-01-02 16:20:37 -07:00
|
|
|
skip_install = True
|
2019-05-09 09:03:25 -06:00
|
|
|
commands = flake8
|
2019-01-07 04:23:02 -07:00
|
|
|
|
2019-04-27 04:56:53 -06:00
|
|
|
[testenv:py2-isort]
|
|
|
|
deps =
|
2019-05-09 05:39:19 -06:00
|
|
|
isort==4.3.17
|
2019-04-27 04:56:53 -06:00
|
|
|
skip_install = True
|
|
|
|
commands = isort -rc -c -df \
|
|
|
|
setup.py \
|
|
|
|
db \
|
|
|
|
auth0login
|
|
|
|
|
|
|
|
[testenv:py3-isort]
|
|
|
|
deps =
|
2019-05-09 05:39:19 -06:00
|
|
|
isort==4.3.17
|
2019-04-27 04:56:53 -06:00
|
|
|
skip_install = True
|
|
|
|
commands = isort -rc -c -df \
|
|
|
|
setup.py \
|
|
|
|
db \
|
|
|
|
auth0login
|
|
|
|
|
2019-04-27 03:20:22 -06:00
|
|
|
[testenv:py2-yapf]
|
|
|
|
deps =
|
2019-05-09 05:39:19 -06:00
|
|
|
yapf==0.27.0
|
2019-04-27 03:20:22 -06:00
|
|
|
skip_install = True
|
|
|
|
commands = yapf -d -r \
|
|
|
|
setup.py \
|
|
|
|
db \
|
|
|
|
auth0login
|
|
|
|
|
|
|
|
[testenv:py3-yapf]
|
2019-04-27 03:04:49 -06:00
|
|
|
deps =
|
2019-05-09 05:39:19 -06:00
|
|
|
yapf==0.27.0
|
2019-04-27 03:04:49 -06:00
|
|
|
skip_install = True
|
|
|
|
commands = yapf -d -r \
|
|
|
|
setup.py \
|
|
|
|
db \
|
|
|
|
auth0login
|
|
|
|
|
2019-01-07 07:08:10 -07:00
|
|
|
[testenv:deps]
|
|
|
|
install_command = python -m pip install --no-deps {opts} {packages}
|
|
|
|
recreate = True
|
|
|
|
deps =
|
|
|
|
-rrequirements-dev.txt
|
|
|
|
extras = dev
|
|
|
|
commands = pip check
|
|
|
|
|
2019-01-07 04:23:02 -07:00
|
|
|
[testenv:pytest]
|
2019-01-07 07:08:10 -07:00
|
|
|
install_command = python -m pip install --no-deps {opts} {packages}
|
2019-01-07 04:23:02 -07:00
|
|
|
deps =
|
2019-01-07 05:39:59 -07:00
|
|
|
-rrequirements-dev.txt
|
2019-01-07 04:23:02 -07:00
|
|
|
usedevelop = True
|
|
|
|
extras = dev
|
|
|
|
commands = pytest
|