mirror of
https://github.com/planetmint/planetmint.git
synced 2025-03-30 15:08:31 +00:00
40 lines
814 B
INI
40 lines
814 B
INI
[tox]
|
|
skipsdist = true
|
|
envlist = py{39}, flake8, docsroot
|
|
|
|
[base]
|
|
basepython = python3.9
|
|
deps = pip>=9.0.1
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
PYTHONPATH={toxinidir}:{toxinidir}/planetmint
|
|
deps = {[base]deps}
|
|
install_command = pip install {opts} {packages}
|
|
extras = test
|
|
commands = pytest -v -n auto --cov=planetmint --basetemp={envtmpdir}
|
|
|
|
[testenv:flake8]
|
|
basepython = {[base]basepython}
|
|
deps =
|
|
{[base]deps}
|
|
flake8
|
|
skip_install = True
|
|
extras = None
|
|
commands = flake8 planetmint tests
|
|
|
|
[flake8]
|
|
ignore = E126 E127 W504 E302 E126 E305
|
|
|
|
[testenv:docsroot]
|
|
basepython = {[base]basepython}
|
|
changedir = docs/root/source
|
|
deps =
|
|
{[base]deps}
|
|
typing-extensions
|
|
-r{toxinidir}/docs/root/requirements.txt
|
|
extras = None
|
|
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
|
|