<commit_before>[tox]
envlist = py27, py36, pypy

[testenv]
commands = {envpython} -m pytest {posargs}
deps = -rtest_requirements.txt
usedevelop = True
passenv = HOME

[testenv:docs]
basepython = python2.7
usedevelop = True
commands =
    rm -f docs/tri*.rst
    sphinx-apidoc -T -o docs/ lib
    make -C docs clean
    make -C docs html
whitelist_externals =
    make
    rm
deps =
    -rdocs/requirements.txt

[testenv:coverage]
basepython = python2.7
usedevelop = True
commands =
    {envpython} -m pytest --cov tri.token {posargs}
    coverage report -m
    coverage html
deps =
    coverage
    pytest-cov
    -rtest_requirements.txt

[testenv:lint]
basepython = python2.7
usedevelop = True
commands =
    {envpython} -m flake8 lib/tri tests setup.py {posargs}
deps =
    flake8

[testenv:venv]
envdir = venv
usedevelop = True
basepython = python2.7
commands = {posargs:python --version}
deps =
    -rvenv_requirements.txt
whitelist_externals =
    make

[testenv:venv3]
envdir = venv<commit_msg>Use python3.6 as default for tox targets<commit_after>[tox]
envlist = py27, py36, pypy

[testenv]
commands = {envpython} -m pytest {posargs}
deps = -rtest_requirements.txt
usedevelop = True
passenv = HOME

[testenv:docs]
basepython = python3.6
usedevelop = True
commands =
    rm -f docs/tri*.rst
    sphinx-apidoc -T -o docs/ lib
    make -C docs clean
    make -C docs html
whitelist_externals =
    make
    rm
deps =
    -rdocs/requirements.txt

[testenv:coverage]
basepython = python3.6
usedevelop = True
commands =
    {envpython} -m pytest --cov tri.token {posargs}
    coverage report -m
    coverage html
deps =
    coverage
    pytest-cov
    -rtest_requirements.txt

[testenv:lint]
basepython = python3.6
usedevelop = True
commands =
    {envpython} -m flake8 lib/tri tests setup.py {posargs}
deps =
    flake8

[testenv:venv]
envdir = venv
usedevelop = True
basepython = python2.7
commands = {posargs:python --version}
deps =
    -rvenv_requirements.txt
whitelist_externals =
    make

[testenv:venv3]
envdir = venv
{'fraction_non_alphanumeric': 0.09817464232856438, 'fraction_numerical': 0.015786877158362113, 'mean_word_length': 3.351931330472103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5775908', 'n_tokens_mistral': 787, 'n_tokens_neox': 771, 'n_words': 199}