<commit_before>[tox]
envlist = py26, py27, py36, lint, cov, func


[testenv:lint]
basepython=python
commands=pylint etcdb


[testenv:flake8]
basepython=python
deps=flake8
ignore = E402
commands=flake8 --max-line-length=120 --ignore=E402 --exclude=etcdb/sqlparser/* etcdb

[testenv:cov]
commands=py.test --cov=etcdb --cov-report term-missing tests/unit

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/etcdb
deps =
    -r{toxinidir}/requirements_dev.txt
commands =
    pip install -U pip
    py.test --basetemp={envtmpdir} tests/unit


[testenv:func]
commands=make docker-test-func

; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
;     -r{toxinidir}/requirements.txt<commit_msg>pin pip because of 'No module named req'<commit_after>[tox]
envlist = py26, py27, py36, lint, cov, func


[testenv:lint]
basepython=python
commands=pylint etcdb


[testenv:flake8]
basepython=python
deps=flake8
ignore = E402
commands=flake8 --max-line-length=120 --ignore=E402 --exclude=etcdb/sqlparser/* etcdb

[testenv:cov]
commands=py.test --cov=etcdb --cov-report term-missing tests/unit

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/etcdb
deps =
    pip==9.0.1
    -r{toxinidir}/requirements_dev.txt
commands =
    py.test --basetemp={envtmpdir} tests/unit


[testenv:func]
commands=make docker-test-func

; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
;     -r{toxinidir}/requirements.txt
{'fraction_non_alphanumeric': 0.11876923076923077, 'fraction_numerical': 0.024, 'mean_word_length': 4.530612244897959, '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': '2505632', 'n_tokens_mistral': 628, 'n_tokens_neox': 593, 'n_words': 147}