<commit_before>[tox]
envlist = py26,py27

[testenv]
# ignore_errors makes sure all commands get run, which means this won't abort if flake8 fails.
# it doesn't affect the return code in the end.
ignore_errors=True
setenv =
    PYTHONDONTWRITEBYTECODE=1
    PYTHONPATH={toxinidir}/vendor/lib/python
deps =
# test deps
    certifi
    coverage
    flake8
    mock
    ordereddict
    Paste
    pyflakes
    pytest
    pytest-cov

commands=
    flake8 auslib scripts balrog.wsgi admin.wsgi uwsgi
    py.test --cov=. --doctest-modules auslib
    coverage run -a scripts/test-rules.py

[testenv:py26]
basepython=python2.6

[testenv:py26-coveralls]
deps=
    python-coveralls
commands=
    coveralls

[testenv:py27]
basepython=python2.7

[testenv:py27-coveralls]
deps=
    python-coveralls
commands=
    coveralls

[flake8]
max-line-length = 160
exclude = .ropeproject,.tox,sandbox,build
show-source = True

[pytest]
norecursedirs = .tox .git .hg sandbox build
python_files = test_*.py
<commit_msg>Ignore pep8 E402.<commit_after>[tox]
envlist = py26,py27

[testenv]
# ignore_errors makes sure all commands get run, which means this won't abort if flake8 fails.
# it doesn't affect the return code in the end.
ignore_errors=True
setenv =
    PYTHONDONTWRITEBYTECODE=1
    PYTHONPATH={toxinidir}/vendor/lib/python
deps =
# test deps
    certifi
    coverage
    flake8
    mock
    ordereddict
    Paste
    pyflakes
    pytest
    pytest-cov

commands=
    flake8 auslib scripts balrog.wsgi admin.wsgi uwsgi
    py.test --cov=. --doctest-modules auslib
    coverage run -a scripts/test-rules.py

[testenv:py26]
basepython=python2.6

[testenv:py26-coveralls]
deps=
    python-coveralls
commands=
    coveralls

[testenv:py27]
basepython=python2.7

[testenv:py27-coveralls]
deps=
    python-coveralls
commands=
    coveralls

[flake8]
max-line-length = 160
exclude = .ropeproject,.tox,sandbox,build
show-source = True
ignore = E402

[pytest]
norecursedirs = .tox .git .hg sandbox build
python_files = test_*.py

{'fraction_non_alphanumeric': 0.0899100899100899, 'fraction_numerical': 0.027472527472527472, 'mean_word_length': 3.6045977011494252, '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': '2900781', 'n_tokens_mistral': 783, 'n_tokens_neox': 742, 'n_words': 182}