<commit_before>[tox]
envlist =
    py{36,37,38,39}-test{,-all,-dev,-novis,-cov,-noopenfiles}
    build_docs
    codestyle
requires =
    setuptools >= 30.3.0
    pip >= 19.3.1
    mock
isolated_build = true
indexserver =
    NRAO = https://casa-pip.nrao.edu/repository/pypi-group/simple

[testenv]
passenv =
    HOME
    DISPLAY
    LC_ALL
    LC_CTYPE
    ON_TRAVIS
changedir =
    .tmp/{envname}
description =
    run tests with pytest
deps =
    dev: git+https://github.com/radio-astro-tools/pvextractor#egg=pvextractor
    dev: git+https://github.com/radio-astro-tools/radio-beam#egg=radio-beam
    dev: git+https://github.com/astropy/astropy#egg=astropy
    dev: git+https://github.com/astropy/reproject#egg=reproject
    dev: git+https://github.com/astropy/regions#egg=regions
    casa: :NRAO:casatools
    casa: :NRAO:casatasks
extras =
    test
    all: all
commands =
    pip freeze
    !cov-!noopenfiles: pytest --open-files --pyargs spectral_cube {toxinidir}/docs {posargs}
    noopenfiles: pytest --pyargs spectral_cube {toxinidir}/docs {posargs}
    cov: pytest --open-files --pyargs spectral_cube {toxinidir}/docs --cov spectral_cube --cov-config={toxinidir}/setup.cfg {posargs}
    cov: coverage xml -o {toxinidir}/coverage.xml

[testenv:build_docs]
changedir =
    docs
description =
    invoke sphinx-build to build the HTML docs
extras =
    docs
commands =
    sphinx-build -W -b html . _build/html {posargs}

[testenv:codestyle]
deps = flake8<commit_msg>add mock as a requirement again<commit_after>[tox]
envlist =
    py{36,37,38,39}-test{,-all,-dev,-novis,-cov,-noopenfiles}
    build_docs
    codestyle
requires =
    setuptools >= 30.3.0
    pip >= 19.3.1
    mock
isolated_build = true
indexserver =
    NRAO = https://casa-pip.nrao.edu/repository/pypi-group/simple

[testenv]
passenv =
    HOME
    DISPLAY
    LC_ALL
    LC_CTYPE
    ON_TRAVIS
changedir =
    .tmp/{envname}
description =
    run tests with pytest
deps =
    mock
    dev: git+https://github.com/radio-astro-tools/pvextractor#egg=pvextractor
    dev: git+https://github.com/radio-astro-tools/radio-beam#egg=radio-beam
    dev: git+https://github.com/astropy/astropy#egg=astropy
    dev: git+https://github.com/astropy/reproject#egg=reproject
    dev: git+https://github.com/astropy/regions#egg=regions
    casa: :NRAO:casatools
    casa: :NRAO:casatasks
extras =
    test
    all: all
commands =
    pip freeze
    !cov-!noopenfiles: pytest --open-files --pyargs spectral_cube {toxinidir}/docs {posargs}
    noopenfiles: pytest --pyargs spectral_cube {toxinidir}/docs {posargs}
    cov: pytest --open-files --pyargs spectral_cube {toxinidir}/docs --cov spectral_cube --cov-config={toxinidir}/setup.cfg {posargs}
    cov: coverage xml -o {toxinidir}/coverage.xml

[testenv:build_docs]
changedir =
    docs
description =
    invoke sphinx-build to build the HTML docs
extras =
    docs
commands =
    sphinx-build -W -b html . _build/html {posargs}

[testenv:codestyle]
deps = flake8
{'fraction_non_alphanumeric': 0.12705882352941175, 'fraction_numerical': 0.011428571428571429, 'mean_word_length': 3.3572474377745243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1382010', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1104, 'n_words': 211}