A malware scanning and file intelligence API for the OpenStack ecosystem.
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 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [tox]
  2. minversion = 2.0
  3. envlist = py35,py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. PYTHONWARNINGS=default::DeprecationWarning
  11. deps = -r{toxinidir}/test-requirements.txt
  12. commands = python setup.py test
  13. [testenv:pep8]
  14. commands = flake8 {posargs}
  15. [testenv:venv]
  16. commands = {posargs}
  17. [testenv:debug-py27]
  18. basepython = python2.7
  19. commands = oslo_debug_helper {posargs}
  20. [testenv:debug-py35]
  21. basepython = python3.5
  22. commands = oslo_debug_helper {posargs}
  23. [flake8]
  24. # E123, E125 skipped as they are invalid PEP-8.
  25. # [H106] Don’t put vim configuration in source files
  26. # [H203] Use assertIs(Not)None to check for None
  27. show-source = True
  28. enable-extensions = H106,H203
  29. ignore = E123,E125
  30. builtins = _
  31. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  32. [testenv:lower-constraints]
  33. basepython = python3
  34. deps =
  35. -c{toxinidir}/lower-constraints.txt
  36. -r{toxinidir}/test-requirements.txt
  37. -r{toxinidir}/requirements.txt