mirror of
https://github.com/khornberg/octokit.py
synced 2026-05-20 20:04:47 +03:00
70 lines
1.4 KiB
INI
70 lines
1.4 KiB
INI
; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist
|
|
|
|
[tox]
|
|
envlist =
|
|
check,
|
|
{py3.7,py3.6},
|
|
docs
|
|
|
|
[testenv]
|
|
basepython =
|
|
py3.7: {env:TOXPYTHON:python3.7}
|
|
py3.6: {env:TOXPYTHON:python3.6}
|
|
{bootstrap,check,docs}: {env:TOXPYTHON:python3}
|
|
setenv =
|
|
PYTHONPATH={toxinidir}/tests
|
|
PYTHONUNBUFFERED=yes
|
|
passenv =
|
|
*
|
|
usedevelop = false
|
|
deps =
|
|
pytest
|
|
pytest-cov
|
|
pytest-mock
|
|
-rrequirements.txt
|
|
commands =
|
|
{posargs:py.test --cov --cov-report=term-missing -vv tests --cov-report=xml}
|
|
|
|
[testenv:bootstrap]
|
|
deps =
|
|
jinja2
|
|
matrix
|
|
skip_install = true
|
|
commands =
|
|
python ci/bootstrap.py
|
|
|
|
[testenv:spell]
|
|
setenv =
|
|
SPELLCHECK=1
|
|
commands =
|
|
sphinx-build -b spelling docs dist/docs
|
|
skip_install = true
|
|
deps =
|
|
-r{toxinidir}/docs/requirements.txt
|
|
sphinxcontrib-spelling
|
|
pyenchant
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-r{toxinidir}/docs/requirements.txt
|
|
commands =
|
|
sphinx-build {posargs:-E} -b html docs dist/docs
|
|
sphinx-build -b linkcheck docs dist/docs
|
|
|
|
[testenv:check]
|
|
deps =
|
|
docutils
|
|
check-manifest
|
|
flake8
|
|
readme-renderer
|
|
pygments
|
|
isort
|
|
yapf<0.20
|
|
skip_install = true
|
|
commands =
|
|
python setup.py check --strict --metadata --restructuredtext
|
|
check-manifest {toxinidir}
|
|
flake8 src tests setup.py
|
|
isort --verbose --check-only --diff --recursive src tests setup.py
|
|
yapf src tests setup.py -p -r -d
|