[tox] envlist = clean,py38,build_docs isolated_build = True indexserver = NIGHTLY = https://pypi.anaconda.org/scipy-wheels-nightly/simple [testenv] whitelist_externals= /bin/bash /usr/bin/bash setenv = MPLBACKEND = agg COLUMNS = 180 PYTEST_COMMAND = pytest --pyargs plasmapy_nei --durations=25 -n=auto --dist=loadfile extras = tests deps = astropydev: git+https://github.com/astropy/astropy matplotlibdev: git+https://github.com/matplotlib/matplotlib numpydev: :NIGHTLY:numpy plasmapydev: git+https://github.com/PlasmaPy/PlasmaPy xarraydev: git+https://github.com/pydata/xarray cov: pytest-cov !minimal: pytest-xdist pytest-github-actions-annotate-failures commands = !cov: {env:PYTEST_COMMAND} {posargs} -m 'not slow' all: {env:PYTEST_COMMAND} {posargs} cov-all: {env:PYTEST_COMMAND} {posargs} --cov=plasmapy_nei --cov-report=xml --cov-config={toxinidir}{/}setup.cfg --cov-append --cov-report xml:coverage.xml description = run tests astropydev: with the development version of astropy matplotlibdev: with the development version of matplotlib numpydev: with the development version of numpy plasmapydev: with the development version of plasmapy xarraydev: with the development version of xarray minimal: with minimal versions of dependencies cov: with code coverage [testenv:clean] deps = coverage skip_install = true commands = coverage erase [testenv:build_docs] changedir = {toxinidir} extras = docs setenv = HOME = {envtmpdir} commands = sphinx-build docs docs{/}_build{/}html -W --keep-going -b html {posargs} [testenv:build_docs_no_examples] changedir = {toxinidir} extras = docs setenv = HOME = {envtmpdir} commands = sphinx-build -D nbsphinx_execute='never' docs docs{/}_build{/}html -b html {posargs} [testenv:build_docs_nitpicky] changedir = {toxinidir} extras = docs setenv = HOME = {envtmpdir} commands = sphinx-build docs docs{/}_build{/}html -W -n --keep-going -b html {posargs} # This env requires tox-conda. [testenv:py38-conda] basepython = python3.8 extras = deps = lmfit pytest-cov pytest-xdist conda_deps = astropy >= 4.3.1 h5py >= 3.0.0 matplotlib mpmath numpy >= 1.19.0 numpydoc pillow pytest >= 5.4.0 scipy >= 1.5.0 sphinx sphinx_rtd_theme # This env tests minimal versions of each dependency. [testenv:py38-all-minimal] basepython = python3.8 extras = deps = astropy==4.3.1 h5py==3.0.0 hypothesis lmfit==1.0.0 matplotlib==3.3.0 mpmath==1.2.1 numba numpy==1.19.0 pillow pytest==6.0.0 pytest-cov pytest-regressions scipy==1.5.0 tqdm==4.41.0 xarray==0.15.0 setenv = PYTEST_COMMAND = pytest --pyargs plasmapy_nei --durations=25 [testenv:linters] deps = dlint flake8 flake8-absolute-import flake8-rst-docstrings flake8-use-fstring pydocstyle pygments commands = flake8 --bug-report flake8 {toxinidir}{/}plasmapy_nei --count --show-source --statistics [testenv:py38-minimal-pypi-import] basepython = python3.8 extras = deps = commands = python -c 'import plasmapy_nei'