1
0
Fork 0
satnogs-db/tox.ini

87 lines
1.5 KiB
INI

[tox]
envlist = {py2,py3}-flake8,isort,yapf,{py2,py3}-{pylint,build},py2-pytest
[testenv:py2-flake8]
deps =
flake8==3.7.7
skip_install = True
commands = flake8
[testenv:py3-flake8]
deps =
flake8==3.7.7
skip_install = True
commands = flake8
[testenv:isort]
deps =
isort==4.3.17
commands = isort -rc -c -df
[testenv:isort-apply]
deps =
isort==4.3.17
commands = isort -rc -y
[testenv:yapf]
deps =
yapf==0.27.0
skip_install = True
commands = yapf -d -r .
[testenv:yapf-apply]
deps =
yapf==0.27.0
skip_install = True
commands = yapf -i -r .
[testenv:py2-build]
skip_install = True
commands =
python setup.py sdist bdist_wheel
[testenv:py3-build]
skip_install = True
commands =
python setup.py sdist bdist_wheel
[testenv:py2-pylint]
deps =
pylint==1.9.4
pylint-django==0.11.1
extras = dev
commands = pylint \
{envsitepackagesdir}/db \
{envsitepackagesdir}/auth0login
[testenv:py3-pylint]
deps =
pylint==2.3.1
pylint-django==2.0.9
extras = dev
commands = pylint --rcfile=.pylintrc3 \
{envsitepackagesdir}/db \
{envsitepackagesdir}/auth0login
[testenv:deps]
install_command = python -m pip install --no-deps {opts} {packages}
recreate = True
deps =
-rrequirements-dev.txt
extras = dev
commands = pip check
[testenv:py2-pytest]
install_command = python -m pip install --no-deps {opts} {packages}
deps =
-rrequirements-dev.txt
extras = dev
commands = pytest
[testenv:py3-pytest]
install_command = python -m pip install --no-deps {opts} {packages}
deps =
-rrequirements-dev.txt
extras = dev
commands = pytest