<commit_before>[tox]
envlist = pep8,py27{-horizon,-openstack_dashboard,dj18},py34,releasenotes
minversion = 1.6
skipsdist = True

[testenv]
basepython=python2.7
install_command = pip install -U {opts} {packages}
setenv =
  VIRTUAL_ENV={envdir}
  INTEGRATION_TESTS=0
  SELENIUM_HEADLESS=0
  SELENIUM_PHANTOMJS=0
  NOSE_WITH_OPENSTACK=1
  NOSE_OPENSTACK_SHOW_ELAPSED=1
deps =
  -r{toxinidir}/requirements.txt
  -r{toxinidir}/test-requirements.txt
commands =
  horizon: {envpython} {toxinidir}/manage.py test horizon --settings=horizon.test.settings {posargs}
  openstack_dashboard: {envpython} {toxinidir}/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings --exclude-dir=openstack_dashboard/test/integration_tests {posargs}

[testenv:py27]
commands =
  {envpython} {toxinidir}/manage.py test horizon --settings=horizon.test.settings {posargs}
  {envpython} {toxinidir}/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings --exclude-dir=openstack_dashboard/test/integration_tests {posargs}

# Django-1.8 is LTS
[testenv:py27dj18]
commands =
  pip install django>=1.8,<1.9
  {envpython} {toxinidir}/manage.py test horizon --settings=horizon.test.settings {posargs}
  {envpython} {toxinidir}/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings --exclude-dir=openstack_dashboard/test/integration_tests {posargs}

[testenv:py34]
basepython = python3.4
setenv =
  {[testenv]setenv}
  PYTHONUNBUFFERED=1
commands =
    {envpython} {toxinidir}/manage.py test --settings=horizon.test.settings horizon.test.tests {posargs}
    {envpython} {toxinidir}/manage.py test --settings=openstack_dashboard.test.settings \
        --exclude-dir=openstack_dashboard/test/integration_tests \
        openstack_dashboard {posargs}

[testenv:pep8]
usedevelop = True
whitelist_externals =
  git
setenv =
  {[testenv]setenv}
  DJANGO_SETTINGS_MODULE=openstack_dashboard.test.settings
commands =
  {[testenv:extractmessages_check]commands}
  flake8


[testenv:extractmessages]
usedevelop = True
setenv =
  {[testenv]setenv}
commands =
 {envpython} {toxinidir}/setup.py extract_messages -F babel-django.cfg -o horizon/locale/django.pot --input-dirs horizon/
 {envpython} {toxinidir}/setup.py extract_messages -F babel-djangojs.cfg -o horizon/locale/djangojs.pot --input-dirs horizon/
 {envpython} {toxinidir}/setup.py extract_messages -F babel-django.cfg -o openstack_dashboard/locale/django.pot --input-dirs openstack_dashboard/
 {envpython} {toxinidir}/setup.py extract_messages -F babel-djangojs.cfg -o openstack_dashboard/locale/djangojs.pot --input-dirs openstack_dashboard/<commit_msg>Whitelist 'rm' in pep8 tox environment<commit_after>[tox]
envlist = pep8,py27{-horizon,-openstack_dashboard,dj18},py34,releasenotes
minversion = 1.6
skipsdist = True

[testenv]
basepython=python2.7
install_command = pip install -U {opts} {packages}
setenv =
  VIRTUAL_ENV={envdir}
  INTEGRATION_TESTS=0
  SELENIUM_HEADLESS=0
  SELENIUM_PHANTOMJS=0
  NOSE_WITH_OPENSTACK=1
  NOSE_OPENSTACK_SHOW_ELAPSED=1
deps =
  -r{toxinidir}/requirements.txt
  -r{toxinidir}/test-requirements.txt
commands =
  horizon: {envpython} {toxinidir}/manage.py test horizon --settings=horizon.test.settings {posargs}
  openstack_dashboard: {envpython} {toxinidir}/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings --exclude-dir=openstack_dashboard/test/integration_tests {posargs}

[testenv:py27]
commands =
  {envpython} {toxinidir}/manage.py test horizon --settings=horizon.test.settings {posargs}
  {envpython} {toxinidir}/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings --exclude-dir=openstack_dashboard/test/integration_tests {posargs}

# Django-1.8 is LTS
[testenv:py27dj18]
commands =
  pip install django>=1.8,<1.9
  {envpython} {toxinidir}/manage.py test horizon --settings=horizon.test.settings {posargs}
  {envpython} {toxinidir}/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings --exclude-dir=openstack_dashboard/test/integration_tests {posargs}

[testenv:py34]
basepython = python3.4
setenv =
  {[testenv]setenv}
  PYTHONUNBUFFERED=1
commands =
    {envpython} {toxinidir}/manage.py test --settings=horizon.test.settings horizon.test.tests {posargs}
    {envpython} {toxinidir}/manage.py test --settings=openstack_dashboard.test.settings \
        --exclude-dir=openstack_dashboard/test/integration_tests \
        openstack_dashboard {posargs}

[testenv:pep8]
usedevelop = True
whitelist_externals =
  git
  rm
setenv =
  {[testenv]setenv}
  DJANGO_SETTINGS_MODULE=openstack_dashboard.test.settings
commands =
  {[testenv:extractmessages_check]commands}
  flake8


[testenv:extractmessages]
usedevelop = True
setenv =
  {[testenv]setenv}
commands =
 {envpython} {toxinidir}/setup.py extract_messages -F babel-django.cfg -o horizon/locale/django.pot --input-dirs horizon/
 {envpython} {toxinidir}/setup.py extract_messages -F babel-djangojs.cfg -o horizon/locale/djangojs.pot --input-dirs horizon/
 {envpython} {toxinidir}/setup.py extract_messages -F babel-django.cfg -o openstack_dashboard/locale/django.pot --input-dirs openstack_dashboard/
 {envpython} {toxinidir}/setup.py extract_messages -F babel-djangojs.cfg -o openstack_dashboard/locale/djangojs.pot --input-dirs openstack_dashboard/
{'fraction_non_alphanumeric': 0.11691729323308271, 'fraction_numerical': 0.013345864661654135, 'mean_word_length': 5.659574468085107, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1702950', 'n_tokens_mistral': 1962, 'n_tokens_neox': 1893, 'n_words': 305}