2019-01-02 16:20:37 -07:00
|
|
|
[tox]
|
2019-09-01 16:10:47 -06:00
|
|
|
envlist = flake8,isort,yapf,pylint,build
|
2019-05-09 11:18:21 -06:00
|
|
|
|
2019-09-01 16:10:47 -06:00
|
|
|
[testenv:flake8]
|
2019-01-02 16:20:37 -07:00
|
|
|
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-05-09 09:33:02 -06:00
|
|
|
[testenv:isort]
|
2019-04-27 04:56:53 -06:00
|
|
|
deps =
|
2019-05-09 05:39:19 -06:00
|
|
|
isort==4.3.17
|
2019-05-09 09:05:27 -06:00
|
|
|
commands = isort -rc -c -df
|
2019-04-27 04:56:53 -06:00
|
|
|
|
2019-05-09 09:38:47 -06:00
|
|
|
[testenv:isort-apply]
|
|
|
|
deps =
|
|
|
|
isort==4.3.17
|
|
|
|
commands = isort -rc -y
|
|
|
|
|
2019-05-09 09:33:02 -06:00
|
|
|
[testenv: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
|
2019-05-09 09:07:58 -06:00
|
|
|
commands = yapf -d -r .
|
2019-04-27 03:04:49 -06:00
|
|
|
|
2019-05-09 09:38:47 -06:00
|
|
|
[testenv:yapf-apply]
|
|
|
|
deps =
|
|
|
|
yapf==0.27.0
|
|
|
|
skip_install = True
|
|
|
|
commands = yapf -i -r .
|
|
|
|
|
2019-09-01 16:10:47 -06:00
|
|
|
[testenv:build]
|
2019-05-09 09:10:34 -06:00
|
|
|
skip_install = True
|
|
|
|
commands =
|
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
|
2019-09-01 16:10:47 -06:00
|
|
|
[testenv:pylint]
|
2019-07-02 07:38:18 -06:00
|
|
|
deps =
|
|
|
|
pylint==2.3.1
|
|
|
|
pylint-django==2.0.9
|
|
|
|
extras = dev
|
2019-07-16 07:02:41 -06:00
|
|
|
commands = pylint --rcfile=.pylintrc3 \
|
2019-07-02 07:38:18 -06:00
|
|
|
{envsitepackagesdir}/db \
|
|
|
|
{envsitepackagesdir}/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-09-01 16:10:47 -06: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
|
|
|
extras = dev
|
|
|
|
commands = pytest
|