Tools used by OpenStack Documentation
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

69 lignes
2.2KB

  1. [tox]
  2. minversion = 2.0
  3. envlist = py3,py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install {opts} {packages}
  8. # Install also sitemap scraping tool, not installed by default
  9. # therefore not in requirements file
  10. deps = scrapy>=1.0.0
  11. -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  12. -r{toxinidir}/test-requirements.txt
  13. -r{toxinidir}/requirements.txt
  14. commands = python setup.py testr --slowest --testr-args='{posargs}'
  15. [testenv:pep8]
  16. commands =
  17. python setup.py check --restructuredtext --strict
  18. flake8
  19. # Run doc8 to check .rst and .txt files.
  20. # HACKING.rst is the only file that is not referenced from
  21. # doc/source, so add it explicitly.
  22. doc8 -e txt -e rst doc/source/ HACKING.rst
  23. # Run bashate during pep8 runs to ensure violations are caught by
  24. # the check and gate queues.
  25. bashate bin/doc-tools-check-languages
  26. [testenv:releasenotes]
  27. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  28. [testenv:sitemap]
  29. # commands = functional test command goes here
  30. [testenv:venv]
  31. commands = {posargs}
  32. [testenv:docs]
  33. commands = python setup.py build_sphinx
  34. [testenv:bindep]
  35. # Do not install any requirements. We want this to be fast and work even if
  36. # system dependencies are missing, since it's used to tell you what system
  37. # dependencies are missing! This also means that bindep must be installed
  38. # separately, outside of the requirements files, and develop mode disabled
  39. # explicitly to avoid unnecessarily installing the checked-out repo too (this
  40. # further relies on "tox.skipsdist = True" above).
  41. deps = bindep
  42. commands = bindep test
  43. usedevelop = False
  44. [flake8]
  45. show-source = True
  46. builtins = _
  47. exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build,doc/source/conf.py
  48. # 28 is currently the most complex thing we have
  49. max-complexity=29
  50. ignore = H101
  51. [testenv:lower-constraints]
  52. basepython = python3
  53. # Install also sitemap scraping tool, not installed by default
  54. # therefore not in requirements file
  55. deps =
  56. scrapy>=1.0.0
  57. -c{toxinidir}/lower-constraints.txt
  58. -r{toxinidir}/test-requirements.txt
  59. -r{toxinidir}/requirements.txt