<commit_before>[tox]
minversion = 1.6
envlist = py27,pep8
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
   VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'

[testenv:functional]
sitepackages = True
setenv = OS_TEST_PATH=./magnum/tests/functional
         OS_TEST_TIMEOUT=7200
deps =
  {[testenv]deps}

[testenv:pep8]
commands =
  flake8 {posargs}

[testenv:venv]
commands = {posargs}

[testenv:bandit]
deps = -r{toxinidir}/test-requirements-bandit.txt
commands = bandit -c bandit.yaml -r magnum -n5 -p magnum_conservative

[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'

[testenv:docs]
commands = python setup.py build_sphinx

[testenv:genconfig]
commands =
    oslo-config-generator --output-file etc/magnum/magnum.conf.sample \<commit_msg>Pass environment variables of proxy to tox<commit_after>[tox]
minversion = 1.6
envlist = py27,pep8
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
   VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY

[testenv:functional]
sitepackages = True
setenv = OS_TEST_PATH=./magnum/tests/functional
         OS_TEST_TIMEOUT=7200
deps =
  {[testenv]deps}

[testenv:pep8]
commands =
  flake8 {posargs}

[testenv:venv]
commands = {posargs}

[testenv:bandit]
deps = -r{toxinidir}/test-requirements-bandit.txt
commands = bandit -c bandit.yaml -r magnum -n5 -p magnum_conservative

[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'

[testenv:docs]
commands = python setup.py build_sphinx

[testenv:genconfig]
commands =
    oslo-config-generator --output-file etc/magnum/magnum.conf.sample \
{'fraction_non_alphanumeric': 0.12506178942165103, 'fraction_numerical': 0.011863568956994563, 'mean_word_length': 4.701408450704226, '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': '5838824', 'n_tokens_mistral': 786, 'n_tokens_neox': 762, 'n_words': 155}