<commit_before>[tox]
envlist =
    py{3.6,3.7,3.8,3.9}-test{,-alldeps,-oldestdeps}{,-devastropy}{,-cov}
    codestyle
    build_docs

requires =
    setuptools >= 30.3.0
    pip >= 19.3.1
    tox-pypi-filter >= 0.12

isolated_build = true


[testenv]
# Run the tests in a temporary directory to make sure that we don't import
# astroML from the source tree
changedir = .tmp/{envname}

description =
    Run tests
    alldeps: with all possible dependencies
    oldestdeps: with the oldest supported dependencies
    devastropy: with development branch of AstroPy
    cov: and add test coverage report

deps =
    devastropy: git+https://github.com/astropy/astropy.git#egg=astropy

    oldestdeps: matplotlib==3.0.3
    oldestdeps: numpy==1.13.3
    oldestdeps: scikit-learn==0.18.2
    oldestdeps: scipy==0.18.1
    oldestdeps: astropy<=3.2
    oldestdeps: pymc3==3.7   # optional dependency, but we include it here

    alldeps: arviz<0.11      # FIXME: temporary limitation as pymc 3.10 is not compatible with newer arviz
    alldeps: numpy<1.20      # FIXME: temporary limitation as theano 1.0.11 is not compatible (pinned for pymc3 3.10)
extras =
    test
    py3.9-alldeps: all

commands =
    pip freeze
    !cov: pytest {toxinidir}/astroML {posargs}
    cov:  pytest {toxinidir}/astroML --cov {toxinidir}/astroML{posargs}


[testenv:codestyle]
changedir = {toxinidir}
skip_install = true
description = Code style checks.
<commit_msg>Limit pytest version for old pythons<commit_after>[tox]
envlist =
    py{3.6,3.7,3.8,3.9}-test{,-alldeps,-oldestdeps}{,-devastropy}{,-cov}
    codestyle
    build_docs

requires =
    setuptools >= 30.3.0
    pip >= 19.3.1
    tox-pypi-filter >= 0.12

isolated_build = true


[testenv]
# Run the tests in a temporary directory to make sure that we don't import
# astroML from the source tree
changedir = .tmp/{envname}

description =
    Run tests
    alldeps: with all possible dependencies
    oldestdeps: with the oldest supported dependencies
    devastropy: with development branch of AstroPy
    cov: and add test coverage report

deps =
    devastropy: git+https://github.com/astropy/astropy.git#egg=astropy

    py3.6: pytest<7

    oldestdeps: matplotlib==3.0.3
    oldestdeps: numpy==1.13.3
    oldestdeps: scikit-learn==0.18.2
    oldestdeps: scipy==0.18.1
    oldestdeps: astropy<=3.2
    oldestdeps: pymc3==3.7   # optional dependency, but we include it here

    alldeps: arviz<0.11      # FIXME: temporary limitation as pymc 3.10 is not compatible with newer arviz
    alldeps: numpy<1.20      # FIXME: temporary limitation as theano 1.0.11 is not compatible (pinned for pymc3 3.10)
extras =
    test
    py3.9-alldeps: all

commands =
    pip freeze
    !cov: pytest {toxinidir}/astroML {posargs}
    cov:  pytest {toxinidir}/astroML --cov {toxinidir}/astroML{posargs}


[testenv:codestyle]
changedir = {toxinidir}
skip_install = true
description = Code style checks.

{'fraction_non_alphanumeric': 0.10430916552667578, 'fraction_numerical': 0.040697674418604654, 'mean_word_length': 3.3397626112759644, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5019408', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1061, 'n_words': 283}