<commit_before>[tox]
envlist =
    py{36,37,38}-test{,-alldeps,-devdeps}
    build_docs
    codestyle
requires =
    setuptools >= 30.3.0
    pip >= 19.3.1
isolated_build = true

[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/spectral-cube#egg=spectral-cube
    dev: git+https://github.com/astropy/astropy#egg=astropy
extras =
    test
    all: all
commands =
    pip freeze
    pytest --open-files --pyargs pvextractor {toxinidir}/docs --cov pvextractor --cov-config={toxinidir}/setup.cfg {posargs}

[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
skip_install = true
commands =
    flake8 --max-line-length=100 pvextractor<commit_msg>Small fixes in tox configuration<commit_after>[tox]
envlist =
    py{36,37,38}-test{,-alldeps,-devdeps}
    build_docs
    codestyle
requires =
    setuptools >= 30.3.0
    pip >= 19.3.1
isolated_build = true

[testenv]
passenv =
    HOME
    DISPLAY
    LC_ALL
    LC_CTYPE
    ON_TRAVIS
changedir =
    .tmp/{envname}
description =
    run tests with pytest
deps =
    devdeps: git+https://github.com/radio-astro-tools/spectral-cube#egg=spectral-cube
    devdeps: git+https://github.com/astropy/astropy#egg=astropy
extras =
    test
    alldeps: all
commands =
    pip freeze
    pytest --open-files --pyargs pvextractor {toxinidir}/docs --cov pvextractor --cov-config={toxinidir}/setup.cfg {posargs}

[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
skip_install = true
commands =
    flake8 --max-line-length=100 pvextractor
{'fraction_non_alphanumeric': 0.11195928753180662, 'fraction_numerical': 0.019338422391857506, 'mean_word_length': 3.1389473684210527, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '1573972', 'n_tokens_mistral': 781, 'n_tokens_neox': 726, 'n_words': 155}