1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
[tox]
envlist =
py{36,37,38}-{pep8,test}{-oldestdeps,}
build_docs
codestyle
isolated_build = True
[testenv]
whitelist_externals =
geos-config
passenv =
SSL_CERT_FILE
setenv =
HOME = {envtmpdir}
changedir =
.tmp/{envname}
deps =
oldestdeps: numpy==1.13.*
oldestdeps: astropy==3.2.*
oldestdeps: astropy-healpix==0.2
oldestdeps: scipy==1.1.*
extras =
test
testall
commands =
pip freeze
!cov: pytest --arraydiff --arraydiff-default-format=fits --pyargs reproject {toxinidir}/docs {posargs}
cov: pytest --arraydiff --arraydiff-default-format=fits --pyargs reproject {toxinidir}/docs --cov reproject --cov-config={toxinidir}/setup.cfg {posargs}
[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands =
pip freeze
sphinx-build -W -b html . _build/html
[testenv:linkcheck]
changedir = docs
description = check the links in the HTML docs
extras = docs
commands =
pip freeze
sphinx-build -W -b linkcheck . _build/html
[testenv:codestyle]
skip_install = true
changedir = .
description = check code style, e.g. with flake8
deps = flake8
commands = flake8 reproject --count --max-line-length=100
|