Configuration extraction tool for Airship
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.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [tox]
  2. envlist = pep8, docs
  3. minversion = 2.3.1
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. setenv =
  8. VIRTUAL_ENV={envdir}
  9. LANGUAGE=en_US
  10. LC_ALL=en_US.utf-8
  11. deps =
  12. -r{toxinidir}/requirements.txt
  13. -r{toxinidir}/test-requirements.txt
  14. passenv = http_proxy https_proxy HTTP_PROXY HTTPS_PROXY no_proxy NO_PROXY PBR_VERSION
  15. whitelist_externals =
  16. find
  17. commands =
  18. find . -type f -name "*.pyc" -delete
  19. {toxinidir}/tools/gate/run-unit-tests.sh '{posargs}'
  20. [testenv:fmt]
  21. basepython = python3
  22. deps =
  23. -r{toxinidir}/test-requirements.txt
  24. commands =
  25. yapf -ir {toxinidir}/spyglass {toxinidir}/tests
  26. [testenv:pep8]
  27. basepython = python3
  28. deps =
  29. -r{toxinidir}/test-requirements.txt
  30. commands =
  31. bash -c "{toxinidir}/tools/gate/whitespace-linter.sh"
  32. flake8 {toxinidir}/spyglass
  33. whitelist_externals =
  34. bash
  35. [testenv:bandit]
  36. deps =
  37. bandit
  38. commands = bandit -r spyglass -n 5
  39. [flake8]
  40. ignore = E125,E251,W503
  41. [testenv:docs]
  42. basepython = python3
  43. deps =
  44. -r{toxinidir}/requirements.txt
  45. -r{toxinidir}/doc/requirements.txt
  46. commands =
  47. rm -rf doc/build
  48. sphinx-build -b html doc/source doc/build -n -W -v
  49. whitelist_externals = rm