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.
 
 
 
 

50 lines
1.4 KiB

  1. [tox]
  2. minversion = 1.6
  3. envlist = py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -U {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. deps = -r{toxinidir}/test-requirements.txt
  11. -r{toxinidir}/requirements.txt
  12. commands = python setup.py testr --slowest --testr-args='{posargs}'
  13. [testenv:pep8]
  14. commands =
  15. flake8
  16. # Run doc8 to check .rst and .txt files.
  17. # HACKING.rst is the only file that is not referenced from
  18. # doc/source, so add it explicitly.
  19. doc8 -e txt -e rst doc/source/ HACKING.rst
  20. # Run bashate during pep8 runs to ensure violations are caught by
  21. # the check and gate queues.
  22. bashate autogenerate_config_docs/autohelp-wrapper \
  23. bin/doc-tools-check-languages \
  24. cleanup/remove_trailing_whitespaces.sh
  25. [testenv:pylint]
  26. commands = pylint os_doc_tools cleanup
  27. [testenv:releasenotes]
  28. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  29. [testenv:venv]
  30. commands = {posargs}
  31. [testenv:docs]
  32. commands = python setup.py build_sphinx
  33. [flake8]
  34. # H803 skipped on purpose per list discussion.
  35. # E123, E125 skipped as they are invalid PEP-8.
  36. show-source = True
  37. ignore = E123,E125,H803
  38. builtins = _
  39. exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,*autogenerate_config_docs/venv,*autogenerate_config_docs/sources
  40. # 28 is currently the most complex thing we have
  41. max-complexity=29