<commit_before>[tox]
envlist = py2, py3, docs

[testenv]
deps =
    flake8
    pytest
commands =
    {envpython} setup.py check --strict
    {envpython} -m flake8 sphinxcontrib/ tests/
    {envpython} -m pytest tests/ --strict  {posargs}

[testenv:docs]
deps = sphinx_rtd_theme
commands =
    sphinx-build -b html -d {envtmpdir}/doctrees docs docs/_build/<commit_msg>Use newer setuptools version for py36<commit_after>[tox]
envlist = py2, py3, docs

[testenv]
deps =
    flake8
    pytest
commands =
    {envpython} setup.py check --strict
    {envpython} -m flake8 sphinxcontrib/ tests/
    {envpython} -m pytest tests/ --strict  {posargs}


[testenv:py36]
commands_pre =
    # Unfortunately, Travis CI uses a pretty outdated version of setuptools
    # package in Python 3.6 environments. That version has a bug that prevents
    # using namespace packages [1]. Fortunately, it has been fixed in newer
    # versions, thus we simply must update a setuptools version.
    #
    # https://github.com/pypa/setuptools/pull/1402/
    {envpython} -m pip install -U setuptools>=40.3.0

[testenv:docs]
deps = sphinx_rtd_theme
commands =
    sphinx-build -b html -d {envtmpdir}/doctrees docs docs/_build/
{'fraction_non_alphanumeric': 0.10192147034252297, 'fraction_numerical': 0.01921470342522974, 'mean_word_length': 3.3405797101449277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '5459153', 'n_tokens_mistral': 436, 'n_tokens_neox': 415, 'n_words': 127}