<commit_before># Tox (https://tox.readthedocs.io/) 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.
#
# See also https://tox.readthedocs.io/en/latest/config.html for more
# configuration options.

[tox]
# Choose your Python versions. They have to be available
# on the system the tests are run on.
envlist = py35, py36, py37, flake8, pylint, docker
skip_missing_interpreters = true

[testenv]
commands = 
    python --version
    pytest tests --cov=tomato --cov-report term --cov-append
description = run unittests
deps =
    -rrequirements.txt
    pytest
    pytest-cov
depends =
    {py35, py36, py37}: clean
    report: py35, py36, py37

[testenv:report]
commands =
    coverage report
    coverage html
deps = coverage
skip_install = true

[testenv:clean]
commands = coverage erase
deps = coverage
skip_install = true

[testenv:flake8]
commands =
    flake8 tomato
    flake8 setup.py
deps =
    flake8
skip_install = true

[testenv:pylint]
commands =
    pylint setup.py
    pylint-fail-under --fail_under 9.75 tomato
deps =
    -rrequirements.txt
    pylint
    pylint-fail-under

[testenv:docker]
commands =
    docker build -t sertansenturk/tomato .
    docker run -it sertansenturk/tomato python3 -c \
        "from tomato import __version__; print(__version__)"
whitelist_externals = docker<commit_msg>Tox call pylint once<commit_after># Tox (https://tox.readthedocs.io/) 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.
#
# See also https://tox.readthedocs.io/en/latest/config.html for more
# configuration options.

[tox]
# Choose your Python versions. They have to be available
# on the system the tests are run on.
envlist = py35, py36, py37, flake8, pylint, docker
skip_missing_interpreters = true

[testenv]
commands = 
    python --version
    pytest tests --cov=tomato --cov-report term --cov-append
description = run unittests
deps =
    -rrequirements.txt
    pytest
    pytest-cov
depends =
    {py35, py36, py37}: clean
    report: py35, py36, py37

[testenv:report]
commands =
    coverage report
    coverage html
deps = coverage
skip_install = true

[testenv:clean]
commands = coverage erase
deps = coverage
skip_install = true

[testenv:flake8]
commands =
    flake8 tomato
    flake8 setup.py
deps =
    flake8
skip_install = true

[testenv:pylint]
commands =
    pylint-fail-under --fail_under 9.75 tomato setup.py
deps =
    -rrequirements.txt
    pylint
    pylint-fail-under

[testenv:docker]
commands =
    docker build -t sertansenturk/tomato .
    docker run -it sertansenturk/tomato python3 -c \
        "from tomato import __version__; print(__version__)"
whitelist_externals = docker
{'fraction_non_alphanumeric': 0.08701563562202583, 'fraction_numerical': 0.018354860639021073, 'mean_word_length': 3.5068912710566615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '542577', 'n_tokens_mistral': 1034, 'n_tokens_neox': 982, 'n_words': 315}