<commit_before>[tox]
skipsdist = True
envlist = pep8, reqcheck, gae, py27, py34

[testenv]
passenv = PYTHONPATH GOOGLE_* GCLOUD_* TEST_* TRAVIS*
basepython = python2.7
deps =
    -rrequirements.txt
    -rrequirements-dev.txt
commonargs =
    --with-timer
    --with-coverage
    --cover-tests
    --cover-branches
    --cover-inclusive
    --with-flaky
    --no-success-flaky-report

[testenv:reqcheck]
deps =
    requests[security]
commands =
    bash -c "find . -name requirements\*.txt |\
        xargs -n 1 ./scripts/check_requirements.py"
whitelist_externals = bash

[testenv:requpdate]
deps =
    requests[security]
commands =
    bash -c "find . -name requirements\*.txt |\
        xargs -n 1 ./scripts/update_requirements.py"
whitelist_externals = bash

[testenv:gae]
deps =
    {[testenv]deps}
    mysql-python==1.2.5
commands = 
    nosetests --with-gae \
        --gae-app=tests/resources/app.yaml \
        --logging-level=INFO \
        {[testenv]commonargs} \
        {posargs:appengine}
setenv =
    PYTHONPATH={env:GAE_PYTHONPATH:}

[testenv:py27]
deps =
    {[testenv]deps}
commands = 
    nosetests \
        --exclude-dir=appengine \
        {[testenv]commonargs} \
        {posargs:-a '!slow,!flaky'}

[testenv:py34]
basepython = python3.4
deps =
    {[testenv]deps}
commands = 
    nosetests \
        --exclude-dir=appengine \
        {[testenv]commonargs} \
        {posargs:-a '!slow,!flaky'}

[testenv:py27-all]
deps =
    {[testenv]deps}
commands = 
    nosetests \
        --exclude-dir=appengine \
        {[testenv]commonargs} \
        --with-xunit \
        {posargs}

[testenv:py34-all]
basepython = python3.4
deps =
    {[testenv]deps}
commands = 
    nosetests \
        --exclude-dir=appengine \
        {[testenv]commonargs} \
        --with-xunit \
        {posargs}

[testenv:pep8]
deps = 
    flake8
    flake8-import-order
commands =
    flake8 --builtin=gettext --max-complexity=10 --import-order-style=google {posargs}

[flake8]
exclude=container_engine/django_tutorial/polls/migrations/*
<commit_msg>Adding testsuite name to xunit reports.<commit_after>[tox]
skipsdist = True
envlist = pep8, reqcheck, gae, py27, py34

[testenv]
passenv = PYTHONPATH GOOGLE_* GCLOUD_* TEST_* TRAVIS*
basepython = python2.7
deps =
    -rrequirements.txt
    -rrequirements-dev.txt
commonargs =
    --with-timer
    --with-coverage
    --cover-tests
    --cover-branches
    --cover-inclusive
    --with-flaky
    --no-success-flaky-report

[testenv:reqcheck]
deps =
    requests[security]
commands =
    bash -c "find . -name requirements\*.txt |\
        xargs -n 1 ./scripts/check_requirements.py"
whitelist_externals = bash

[testenv:requpdate]
deps =
    requests[security]
commands =
    bash -c "find . -name requirements\*.txt |\
        xargs -n 1 ./scripts/update_requirements.py"
whitelist_externals = bash

[testenv:gae]
deps =
    {[testenv]deps}
    mysql-python==1.2.5
commands = 
    nosetests --with-gae \
        --gae-app=tests/resources/app.yaml \
        --logging-level=INFO \
        {[testenv]commonargs} \
        {posargs:appengine}
setenv =
    PYTHONPATH={env:GAE_PYTHONPATH:}

[testenv:py27]
deps =
    {[testenv]deps}
commands = 
    nosetests \
        --exclude-dir=appengine \
        {[testenv]commonargs} \
        {posargs:-a '!slow,!flaky'}

[testenv:py34]
basepython = python3.4
deps =
    {[testenv]deps}
commands = 
    nosetests \
        --exclude-dir=appengine \
        {[testenv]commonargs} \
        {posargs:-a '!slow,!flaky'}

[testenv:py27-all]
deps =
    {[testenv]deps}
commands = 
    nosetests \
        --exclude-dir=appengine \
        {[testenv]commonargs} \
        --with-xunit \
        --xunit-testsuite-name py27 \
        {posargs}

[testenv:py34-all]
basepython = python3.4
deps =
    {[testenv]deps}
commands = 
    nosetests \
        --exclude-dir=appengine \
        {[testenv]commonargs} \
        --with-xunit \
        --xunit-testsuite-name py34 \
        {posargs}

[testenv:pep8]
deps = 
    flake8
    flake8-import-order
commands =
    flake8 --builtin=gettext --max-complexity=10 --import-order-style=google {posargs}

[flake8]
exclude=container_engine/django_tutorial/polls/migrations/*

{'fraction_non_alphanumeric': 0.139207258834766, 'fraction_numerical': 0.015759312320916905, 'mean_word_length': 2.4705882352941178, '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': '3117874', 'n_tokens_mistral': 1633, 'n_tokens_neox': 1541, 'n_words': 257}