Tools to make Grafana dashboards from templates
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 953B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [tox]
  2. minversion = 1.6
  3. envlist = docs,pep8,py27,py34
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -U {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. deps = -r{toxinidir}/requirements.txt
  11. -r{toxinidir}/test-requirements.txt
  12. commands = python setup.py test --slowest --testr-args='{posargs}'
  13. [testenv:pep8]
  14. basepython = python3
  15. commands = flake8
  16. [testenv:venv]
  17. basepython = python3
  18. commands = {posargs}
  19. [testenv:cover]
  20. basepython = python3
  21. commands =
  22. coverage erase
  23. python setup.py test --coverage --coverage-package-name=grafana_dashboards --testr-args='{posargs}'
  24. coverage report
  25. [testenv:docs]
  26. basepython = python3
  27. commands = python setup.py build_sphinx
  28. [flake8]
  29. # E123, E125 skipped as they are invalid PEP-8.
  30. # H202 skip until we actually write our own exceptions
  31. show-source = True
  32. ignore = E123,E125,H202
  33. builtins = _
  34. exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build