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.

28 lines
630 B

  1. [tox]
  2. minversion = 1.6
  3. skipsdist = True
  4. envlist = pep8, py33
  5. [testenv]
  6. whitelist_externals = py.test
  7. usedevelop = True
  8. deps =
  9. -r{toxinidir}/requirements.txt
  10. -r{toxinidir}/test-requirements.txt
  11. setenv = VIRTUAL_ENV={envdir}
  12. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  13. commands = pytest -vv #{posargs:./tests}
  14. [testenv:pep8]
  15. usedevelop = False
  16. whitelist_externals = bash
  17. commands =
  18. bash -c "find {toxinidir}/* -type f -name '*.py' -print0 | xargs -0 flake8"
  19. [testenv:venv]
  20. commands = {posargs}
  21. [flake8]
  22. show-source = true
  23. builtins = _
  24. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg