Tools used by OpenStack Documentation
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.
 
 
 
 

65 lines
2.0 KiB

  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. flake8
  18. # Run doc8 to check .rst and .txt files.
  19. # HACKING.rst is the only file that is not referenced from
  20. # doc/source, so add it explicitly.
  21. doc8 -e txt -e rst doc/source/ HACKING.rst
  22. # Run bashate during pep8 runs to ensure violations are caught by
  23. # the check and gate queues.
  24. bashate bin/doc-tools-check-languages
  25. [testenv:releasenotes]
  26. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  27. [testenv:sitemap]
  28. # commands = functional test command goes here
  29. [testenv:venv]
  30. commands = {posargs}
  31. [testenv:docs]
  32. commands = python setup.py build_sphinx
  33. [testenv:bindep]
  34. # Do not install any requirements. We want this to be fast and work even if
  35. # system dependencies are missing, since it's used to tell you what system
  36. # dependencies are missing! This also means that bindep must be installed
  37. # separately, outside of the requirements files, and develop mode disabled
  38. # explicitly to avoid unnecessarily installing the checked-out repo too (this
  39. # further relies on "tox.skipsdist = True" above).
  40. deps = bindep
  41. commands = bindep test
  42. usedevelop = False
  43. [flake8]
  44. show-source = True
  45. builtins = _
  46. exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build,doc/source/conf.py
  47. # 28 is currently the most complex thing we have
  48. max-complexity=29
  49. ignore = H101
  50. [testenv:lower-constraints]
  51. basepython = python3
  52. deps =
  53. -c{toxinidir}/lower-constraints.txt
  54. -r{toxinidir}/test-requirements.txt
  55. -r{toxinidir}/requirements.txt