<commit_before>[tox]
# I'm still a bit unsure who should control which python versions are used:
# travis, tox, or some combination. Need to learn more about tox.
envlist = py,lint,style,docs
minversion = 2.9.0

[testenv]
description = run the unit tests with pytest under {basepython}
deps = coverage: pytest-cov
extras = test
commands = pytest {env:_EXTRA_COMMAND_ARGS:} tests/test_suite
setenv =
    coverage: _EXTRA_COMMAND_ARGS=--cov=cosmic_ray --cov=tests/test_suite --cov-report=term-missing:skip-covered
    PYTHONDONTWRITEBYTECODE = 1

[testenv:lint]
deps = pylint == 1.7.4
basepython = python3.6
description = run static analysis with pylint
commands = pylint cosmic_ray
           pylint plugins/execution-engines/celery4/cosmic_ray_celery4_engine

[testenv:style]
deps = flake8 == 3.4.1
       flake8-bugbear == 17.4.0
basepython = python3.6
description = run style check using flake8
commands = flake8 --show-source cosmic_ray setup.py plugins test docs --exclude test/test_project

[testenv:docs]
description = invoke sphinx-build to build the HTML docs, check that URIs are valid
basepython = python3.6
extras = docs
passenv = http_proxy https_proxy no_proxy
commands = sphinx-build -d {toxworkdir}/docs_doctree docs {toxworkdir}/docs_out --color -W -bhtml
           sphinx-build -d {toxworkdir}/docs_doctree docs {toxworkdir}/docs_out --color -W -blinkcheck<commit_msg>Added sphinx pre-install dependency to tox.ini.<commit_after>[tox]
# I'm still a bit unsure who should control which python versions are used:
# travis, tox, or some combination. Need to learn more about tox.
envlist = py,lint,style,docs
minversion = 2.9.0

[testenv]
description = run the unit tests with pytest under {basepython}
deps = 
    sphinx
    coverage: pytest-cov
extras = test
commands = pytest {env:_EXTRA_COMMAND_ARGS:} tests/test_suite
setenv =
    coverage: _EXTRA_COMMAND_ARGS=--cov=cosmic_ray --cov=tests/test_suite --cov-report=term-missing:skip-covered
    PYTHONDONTWRITEBYTECODE = 1

[testenv:lint]
deps = 
    sphinx
    pylint == 1.7.4
basepython = python3.6
description = run static analysis with pylint
commands = pylint cosmic_ray
           pylint plugins/execution-engines/celery4/cosmic_ray_celery4_engine

[testenv:style]
deps = flake8 == 3.4.1
       flake8-bugbear == 17.4.0
       sphinx
basepython = python3.6
description = run style check using flake8
commands = flake8 --show-source cosmic_ray setup.py plugins test docs --exclude test/test_project

[testenv:docs]
description = invoke sphinx-build to build the HTML docs, check that URIs are valid
basepython = python3.6
extras = docs
passenv = http_proxy https_proxy no_proxy
commands = sphinx-build -d {toxworkdir}/docs_doctree docs {toxworkdir}/docs_out --color -W -bhtml
           sphinx-build -d {toxworkdir}/docs_doctree docs {toxworkdir}/docs_out --color -W -blinkcheck
{'fraction_non_alphanumeric': 0.09081346423562413, 'fraction_numerical': 0.0182328190743338, 'mean_word_length': 4.2157221206581355, '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': '5403285', 'n_tokens_mistral': 1000, 'n_tokens_neox': 951, 'n_words': 277}