Python Statsd library for sending statsd messages via the Monasca Agent
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.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. [tox]
  2. envlist = py{27,36},pep8,cover
  3. minversion = 2.5
  4. skipsdist = True
  5. [testenv]
  6. passenv = http_proxy
  7. HTTP_PROXY
  8. https_proxy
  9. HTTPS_PROXY
  10. no_proxy
  11. NO_PROXY
  12. usedevelop = True
  13. install_command = pip install {opts} {packages}
  14. deps =
  15. -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  16. -r{toxinidir}/requirements.txt
  17. -r{toxinidir}/test-requirements.txt
  18. whitelist_externals = bash
  19. find
  20. rm
  21. commands =
  22. find . -type f -name "*.py[c|o]" -delete
  23. stestr run {posargs}
  24. [testenv:cover]
  25. basepython = python3
  26. commands =
  27. coverage erase
  28. python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monascastatsd
  29. coverage report
  30. [testenv:debug]
  31. basepython = python3
  32. commands =
  33. oslo_debug_helper -t {toxinidir}/tests {posargs}
  34. [testenv:docs]
  35. basepython = python3
  36. commands =
  37. rm -rf doc/build
  38. python setup.py build_sphinx
  39. [testenv:bandit]
  40. basepython = python3
  41. commands = bandit -r monascastatsd -s B311 -n5 -x monascastatsd/tests
  42. [testenv:flake8]
  43. basepython = python3
  44. commands = flake8 monascastatsd
  45. [testenv:pep8]
  46. basepython = python3
  47. commands =
  48. {[testenv:flake8]commands}
  49. {[testenv:bandit]commands}
  50. [testenv:venv]
  51. basepython = python3
  52. commands = {posargs}
  53. [flake8]
  54. show-source = True
  55. exclude=.venv,.git,.tox,dist,*egg,build,docs,cover
  56. max-line-length = 100
  57. [testenv:lower-constraints]
  58. basepython = python3
  59. deps =
  60. -c{toxinidir}/lower-constraints.txt
  61. -r{toxinidir}/test-requirements.txt
  62. -r{toxinidir}/requirements.txt