OpenStack Identity (Keystone) Middleware
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 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [tox]
  2. minversion = 2.5.0
  3. skipsdist = True
  4. envlist = py37,py36,py27,pep8,releasenotes
  5. [testenv]
  6. usedevelop = True
  7. setenv = VIRTUAL_ENV={envdir}
  8. OS_STDOUT_NOCAPTURE=False
  9. OS_STDERR_NOCAPTURE=False
  10. deps =
  11. -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  12. -r{toxinidir}/requirements.txt
  13. -r{toxinidir}/test-requirements.txt
  14. commands = stestr run {posargs}
  15. [testenv:pep8]
  16. basepython = python3
  17. commands =
  18. flake8
  19. bandit -r keystonemiddleware -x tests -n5
  20. [testenv:bandit]
  21. basepython = python3
  22. # NOTE(browne): This is required for the integration test job of the bandit
  23. # project. Please do not remove.
  24. commands = bandit -r keystonemiddleware -x tests -n5
  25. [testenv:venv]
  26. basepython = python3
  27. commands = {posargs}
  28. [testenv:cover]
  29. basepython = python3
  30. setenv =
  31. {[testenv]setenv}
  32. PYTHON=coverage run --source keystonemiddleware --parallel-mode
  33. commands =
  34. stestr run {posargs}
  35. coverage combine
  36. coverage html -d cover
  37. coverage xml -o cover/coverage.xml
  38. [testenv:debug]
  39. basepython = python3
  40. commands = oslo_debug_helper -t keystonemiddleware/tests {posargs}
  41. [flake8]
  42. # D100: Missing docstring in public module
  43. # D101: Missing docstring in public class
  44. # D102: Missing docstring in public method
  45. # D103: Missing docstring in public function
  46. # D104: Missing docstring in public package
  47. # D203: 1 blank line required before class docstring (deprecated in pep257)
  48. ignore = D100,D101,D102,D103,D104,D203
  49. show-source = True
  50. exclude = .venv,.tox,dist,doc,*egg,build
  51. [testenv:docs]
  52. basepython = python3
  53. deps = -r{toxinidir}/doc/requirements.txt
  54. commands=
  55. doc8 doc/source
  56. sphinx-build -W -b html doc/source doc/build/html
  57. [testenv:releasenotes]
  58. basepython = python3
  59. deps = -r{toxinidir}/doc/requirements.txt
  60. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  61. [hacking]
  62. import_exceptions =
  63. keystonemiddleware.i18n
  64. [doc8]
  65. extensions = .rst, .yaml
  66. # lines should not be longer than 79 characters.
  67. max-line-length = 79
  68. [testenv:lower-constraints]
  69. basepython = python3
  70. deps =
  71. -c{toxinidir}/lower-constraints.txt
  72. -r{toxinidir}/test-requirements.txt
  73. -r{toxinidir}/requirements.txt