<commit_before># This is configuration file of tox, which run unit tests and other checks.
# See: https://tox.readthedocs.io/en/latest/index.html

[tox]
minversion = 2.0
# envlist = {py26,py27,py34}-master,pep8,docs
envlist = py27-master,pep8,docs

# Test env defaults, runs unit tests via pytest.
# In this case, the "default" means that py34, py27 or other test enviroment
# without explicit definition would use this configuration.
[testenv]
# usedevelop = true
# Uncomment the previous line when you need to speedup unit tests setup
# during development, it would disable sdist build (it sets skipsdist = true)
# and install the project in devel mode (pip install -e .).
passenv =
    cover: CI TRAVIS TRAVIS_*
deps =
    pytest
    mock
    coverage
    pytest-cov
    cover: codecov
    master: -r{toxinidir}/requirements.master.txt
commands =
    {envpython} -m pytest --cov=tendrl tendrl/node_agent/tests
    cover: codecov

# Runs PEP8 checks on the source code via flake8 tool
[testenv:pep8]
skip_install = true
deps =
    flake8
    hacking
commands = flake8 tendrl

# Runs Unused code checks on the source code via vulture tool
[testenv:vulture]
skip_install = true
deps =
    vulture
commands = vulture tendrl

# Runs check_commit_msg.py script (used by Travis CI, see .travis.yml)
[testenv:check_commit_msg]
skip_install = true
deps = requests<commit_msg>tox: allow changing pytest arguments from tox cli<commit_after># This is configuration file of tox, which run unit tests and other checks.
# See: https://tox.readthedocs.io/en/latest/index.html

[tox]
minversion = 2.0
# envlist = {py26,py27,py34}-master,pep8,docs
envlist = py27-master,pep8,docs

# Test env defaults, runs unit tests via pytest.
# In this case, the "default" means that py34, py27 or other test enviroment
# without explicit definition would use this configuration.
[testenv]
# usedevelop = true
# Uncomment the previous line when you need to speedup unit tests setup
# during development, it would disable sdist build (it sets skipsdist = true)
# and install the project in devel mode (pip install -e .).
passenv =
    cover: CI TRAVIS TRAVIS_*
deps =
    pytest
    mock
    coverage
    pytest-cov
    cover: codecov
    master: -r{toxinidir}/requirements.master.txt
commands =
    {envpython} -m pytest --cov=tendrl {posargs:tendrl/node_agent/tests}
    cover: codecov

# Runs PEP8 checks on the source code via flake8 tool
[testenv:pep8]
skip_install = true
deps =
    flake8
    hacking
commands = flake8 tendrl

# Runs Unused code checks on the source code via vulture tool
[testenv:vulture]
skip_install = true
deps =
    vulture
commands = vulture tendrl

# Runs check_commit_msg.py script (used by Travis CI, see .travis.yml)
[testenv:check_commit_msg]
skip_install = true
deps = requests
{'fraction_non_alphanumeric': 0.07974137931034483, 'fraction_numerical': 0.015086206896551725, 'mean_word_length': 4.045289855072464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3410996', 'n_tokens_mistral': 947, 'n_tokens_neox': 921, 'n_words': 328}