Horizon Web interface for Freezer backup, restore and disaster recovery platform
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tox.ini 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [tox]
  2. envlist = py27,pep8,py35,py36,pylint
  3. minversion = 2.0
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. setenv = VIRTUAL_ENV={envdir}
  8. NOSE_WITH_OPENSTACK=1
  9. NOSE_OPENSTACK_COLOR=1
  10. NOSE_OPENSTACK_RED=0.05
  11. NOSE_OPENSTACK_YELLOW=0.025
  12. NOSE_OPENSTACK_SHOW_ELAPSED=1
  13. deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  14. -r{toxinidir}/requirements.txt
  15. -r{toxinidir}/test-requirements.txt
  16. commands = python manage.py test {posargs}
  17. [testenv:pep8]
  18. basepython = python3
  19. commands = flake8 {posargs}
  20. [testenv:venv]
  21. basepython = python3
  22. commands = {posargs}
  23. [testenv:cover]
  24. basepython = python3
  25. commands = python setup.py test --coverage --testr-args={posargs}
  26. [testenv:docs]
  27. basepython = python3
  28. deps = -r{toxinidir}/doc/requirements.txt
  29. setenv = DJANGO_SETTINGS_MODULE=disaster_recovery.test.settings
  30. commands = python setup.py build_sphinx
  31. [testenv:pylint]
  32. commands = pylint --rcfile .pylintrc disaster_recovery
  33. [flake8]
  34. exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*,.ropeproject,tools,doc
  35. max-complexity = 20
  36. ignore = H405,H404,H403,H401,H238,H306,H701
  37. [testenv:lower-constraints]
  38. basepython = python3
  39. deps =
  40. -c{toxinidir}/lower-constraints.txt
  41. -r{toxinidir}/test-requirements.txt
  42. -r{toxinidir}/requirements.txt