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.

34 lines
648 B

  1. [tox]
  2. minversion = 1.6
  3. skipsdist = True
  4. envlist = pep8
  5. [testenv]
  6. allowlist_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 =
  13. http_proxy
  14. HTTP_PROXY
  15. https_proxy
  16. HTTPS_PROXY
  17. no_proxy
  18. NO_PROXY
  19. commands = pytest -vv #{posargs:./tests}
  20. [testenv:pep8]
  21. usedevelop = False
  22. allowlist_externals = bash
  23. commands =
  24. bash -c "find {toxinidir}/* -type f -name '*.py' -print0 | xargs -0 flake8"
  25. [testenv:venv]
  26. commands = {posargs}
  27. [flake8]
  28. show-source = true
  29. builtins = _
  30. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg