Lightning-rod is the IoT node-side agent for the IoTronic service.
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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [tox]
  2. minversion = 2.3.1
  3. envlist = py35,pep8
  4. skipsdist = True
  5. [testenv]
  6. setenv =
  7. VIRTUAL_ENV={envdir}
  8. PYTHONWARNINGS=default::DeprecationWarning
  9. LANGUAGE=en_US
  10. LC_ALL=en_US.utf-8
  11. whitelist_externals = bash
  12. find
  13. rm
  14. usedevelop = True
  15. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  16. deps = -r{toxinidir}/test-requirements.txt
  17. commands =
  18. find . -type f -name "*.pyc" -delete
  19. [testenv:pep8]
  20. basepython = python2.7
  21. commands = flake8 {posargs}
  22. [testenv:venv]
  23. commands = {posargs}
  24. [testenv:cover]
  25. commands = python setup.py test --coverage --testr-args='{posargs}'
  26. [testenv:docs]
  27. commands =
  28. rm -fr doc/build
  29. python setup.py build_sphinx
  30. [testenv:releasenotes]
  31. commands =
  32. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  33. [testenv:py35]
  34. basepython = python3.5
  35. [flake8]
  36. # TODO(dmllr): Analyze or fix the warnings blacklisted below
  37. # E711 comparison to None should be 'if cond is not None:'
  38. # E712 comparison to True should be 'if cond is True:' or 'if cond:'
  39. # H404 multi line docstring should start with a summary
  40. # H405 multi line docstring summary not separated with an empty line
  41. # E123, E125 skipped as they are invalid PEP-8.
  42. show-source = True
  43. builtins = _
  44. ignore = E711,E712,H404,H405,E123,E125,E901
  45. exclude = .venv,.git,.tox,dist,doc,etc,*lib/python*,*egg,build,iotronic_lightningrod/plugins/plugins_examples/,STUFF