<commit_before>[tox]
envlist = pypy, py27, lint, sphinx

[testenv]
# We want modern pip so we can install packages that only have wheels:
deps = pip>=1.5.6
# Change out out of the source directory, so we are testing the installed
# version.
changedir = {envtmpdir}
commands =
    pip install -r dev-requirements.txt
    trial --rterrors {posargs:flocker}
setenv =
    PYTHONHASHSEED=random

[testenv:pypy]
basepython = pypy

[testenv:py27]
basepython = python2.7

[testenv:lint]
basepython = python2.7
changedir = {toxinidir}
commands =
    pip install Flocker[dev]
    flake8 --exclude=_version.py,flocker/restapi/docs/hidden_code_block.py flocker

[testenv:sphinx]
basepython = python2.7
changedir = {toxinidir}
commands =
    pip install Flocker[dev]
    rm -rf docs/_build/html
    sphinx-build -a -b spelling docs/ docs/_build/spelling
    sphinx-build -a -b html docs/ docs/_build/html

[testenv:admin]
basepython = python2.7
usedevelop = True
changedir = {toxinidir}
commands =
    pip install Flocker[dev]
    trial --rterrors admin
<commit_msg>A bunch more cleanup; might actually work now.<commit_after>[tox]
envlist = pypy, py27, lint, sphinx
minversion = 1.6
skipsdist = True

[testenv]
commands =
    pip install -r requirements.txt
    pip install -r dev-requirements.txt
    trial --rterrors {posargs:flocker}
setenv =
    PYTHONHASHSEED=random

[testenv:pypy]
basepython = pypy

[testenv:py27]
basepython = python2.7

[testenv:lint]
basepython = python2.7
changedir = {toxinidir}
deps = flake8
commands =
    flake8 --exclude=_version.py,flocker/restapi/docs/hidden_code_block.py flocker

[testenv:sphinx]
basepython = python2.7
changedir = {toxinidir}
commands =
    pip install -r requirements.txt
    pip install -r dev-requirements.txt
    rm -rf docs/_build/html
    sphinx-build -a -b spelling docs/ docs/_build/spelling
    sphinx-build -a -b html docs/ docs/_build/html

[testenv:admin]
basepython = python2.7
usedevelop = True
changedir = {toxinidir}
commands =
    pip install -r requirements.txt
    pip install -r dev-requirements.txt
    trial --rterrors admin

{'fraction_non_alphanumeric': 0.09952153110047847, 'fraction_numerical': 0.015311004784688996, 'mean_word_length': 3.851508120649652, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1472433', 'n_tokens_mistral': 783, 'n_tokens_neox': 748, 'n_words': 201}