FortiOS Integration with Neutron
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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. [tox]
  2. envlist = py27,py34,pep8
  3. minversion = 1.6
  4. skipsdist = True
  5. [testenv]
  6. setenv = VIRTUAL_ENV={envdir}
  7. PYTHONWARNINGS=default::DeprecationWarning
  8. usedevelop = True
  9. install_command = pip install {opts} {packages}
  10. deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  11. -r{toxinidir}/requirements.txt
  12. -r{toxinidir}/test-requirements.txt
  13. whitelist_externals = bash
  14. commands = bash tools/pretty_tox.sh '{posargs}'
  15. [testenv:pep8]
  16. commands = flake8
  17. [testenv:i18n]
  18. commands = python ./tools/check_i18n.py ./networking_fortinet ./tools/i18n_cfg.py
  19. [testenv:venv]
  20. commands = {posargs}
  21. [testenv:cover]
  22. commands = python setup.py test --coverage --coverage-package-name=networking_fortinet --testr-args='{posargs}'
  23. [testenv:docs]
  24. commands = python setup.py build_sphinx
  25. [hacking]
  26. import_exceptions = neutron.i18n
  27. local-check-factory = neutron.hacking.checks.factory
  28. show-source = True
  29. ignore = E123,E124,E125,H803
  30. [flake8]
  31. # E125 continuation line does not distinguish itself from next logical line
  32. # E126 continuation line over-indented for hanging indent
  33. # E128 continuation line under-indented for visual indent
  34. # E129 visually indented line with same indent as next logical line
  35. # E265 block comment should start with ‘# ‘
  36. # E266 too many leading '#' for block
  37. # E402 module level import not at top
  38. # H301 one import per line
  39. # H404 multi line docstring should start with a summary
  40. # H405 multi line docstring summary not separated with an empty line
  41. # N346 Register sqlalchemy events through neutron.db.api.sqla_listen so they can be cleaned up between unit tests
  42. # N530 direct neutron imports not allowed
  43. # N534 Untranslated exception message.
  44. # N537 Log messages should not be translated!
  45. show-source = True
  46. ignore = E125,E126,E128,E129,E265,E266,E402,H301,H404,H405,N346,N530,N534,N537
  47. builtins = _
  48. exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,templates.py,*tests