<commit_before># Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27,docs,flake8

[testenv]
deps =
    nose
    pylast
    flask
    coverage
    responses
commands =
    nosetests --with-coverage

[testenv:py26]
deps =
    {[testenv]deps}
    unittest2

[testenv:docs]
changedir = docs
deps =
    sphinx
commands =
    sphinx-build -W -b html . {envtmpdir}/html

[testenv:flake8]
deps =
    {[testenv]deps}
    flake8
commands = flake8 beets beetsplug beet test setup.py docs<commit_msg>Use coverage only with py27<commit_after># Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27,docs,flake8

[testenv]
deps =
    nose
    pylast
    flask
    responses
commands =
    nosetests

[testenv:py26]
deps =
    {[testenv]deps}
    unittest2

[testenv:py27]
deps =
    {[testenv]deps}
    coverage
commands =
    nosetests

[testenv:docs]
changedir = docs
deps =
    sphinx
commands =
    sphinx-build -W -b html . {envtmpdir}/html

[testenv:flake8]
deps =
    {[testenv]deps}
    flake8
commands = flake8 beets beetsplug beet test setup.py docs
{'fraction_non_alphanumeric': 0.09439124487004104, 'fraction_numerical': 0.015047879616963064, 'mean_word_length': 3.341246290801187, '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': '577267', 'n_tokens_mistral': 550, 'n_tokens_neox': 526, 'n_words': 163}