mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 22:20:22 -04:00
47 lines
No EOL
1 KiB
INI
47 lines
No EOL
1 KiB
INI
[tox]
|
|
envlist =
|
|
lint,py27,py35,py36,py37,py38,pypy,pypy3,docs,coverage-report,flake8,spelling
|
|
|
|
|
|
[testenv:coverage-report]
|
|
basepython = python3.7
|
|
skip_install = true
|
|
deps = coverage[toml]>=5.0.2
|
|
commands =
|
|
coverage combine
|
|
coverage report
|
|
|
|
|
|
[pipupgrade]
|
|
commands =
|
|
{envpython} -m pip install --upgrade pip
|
|
|
|
|
|
[testenv:docs]
|
|
changedir = {toxinidir}/docs
|
|
commands =
|
|
{[pipupgrade]commands}
|
|
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
|
{[cleanup]commands}
|
|
deps =
|
|
sphinx
|
|
sphinx_rtd_theme
|
|
|
|
|
|
[cleanup]
|
|
commands =
|
|
find {toxinidir}/tests -type f -name "*.pyc" -delete
|
|
find {toxinidir}/tests -type d -name "__pycache__" -delete
|
|
find {toxinidir}/src -type f -name "*.pyc" -delete
|
|
find {toxinidir}/src -type d -name "__pycache__" -delete
|
|
find {toxinidir}/src -type f -path "*.egg-info*" -delete
|
|
find {toxinidir}/src -type d -path "*.egg-info" -delete
|
|
|
|
|
|
[testenv:flake8]
|
|
changedir = {toxinidir}
|
|
deps = flake8
|
|
commands =
|
|
{[pipupgrade]commands}
|
|
flake8 {toxinidir}/src/django_registration {toxinidir}/tests
|
|
{[cleanup]commands} |